akondas/symfony-consul-bundle
Dotenv
CONSUL_SERVICE_NAME=symfony-app
CONSUL_SERVICE_HOST=localhost
CONSUL_SERVICE_PORT=8000
CONSUL_CLIENT_BASE_URI=http://127.0.0.1:8500
Generated files
config/packages/consul.yaml
consul:
service:
name: '%env(resolve:CONSUL_SERVICE_NAME)%'
host: '%env(resolve:CONSUL_SERVICE_HOST)%'
port: '%env(resolve:CONSUL_SERVICE_PORT)%'
client:
base_uri: '%env(resolve:CONSUL_CLIENT_BASE_URI)%'
config/routes/consul.yaml
consul_bundle:
resource: "@ConsulBundle/Resources/config/routing.yml"