Move params to env var

This commit is contained in:
Arkadiusz Kondas
2020-05-04 07:33:24 +02:00
parent dcfcd06cd7
commit ef67b05e8d
2 changed files with 10 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
consul:
service:
name: 'symfony-app'
host: 'localhost'
port: 8000
name: '%env(resolve:CONSUL_SERVICE_NAME)%'
host: '%env(resolve:CONSUL_SERVICE_HOST)%'
port: '%env(resolve:CONSUL_SERVICE_PORT)%'
client:
base_uri: http://127.0.0.1:8500
base_uri: '%env(resolve:CONSUL_CLIENT_BASE_URI)%'

View File

@@ -4,5 +4,11 @@
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"CONSUL_SERVICE_NAME": "symfony-app",
"CONSUL_SERVICE_HOST": "localhost",
"CONSUL_SERVICE_PORT": "8000",
"CONSUL_CLIENT_BASE_URI": "http://127.0.0.1:8500"
}
}