Allow compose to find all env variables

With two declared "environment" compose only takes the second one. In
thi case it means that the letsencrypt companion and reverse-proxy can't
read the neede variables for the setup, making this example to return a
http 503 error.
This commit is contained in:
Jorge Villasenor 2017-10-22 20:44:40 -07:00
parent fa3b83c1b1
commit 577ff54b45

View File

@ -21,7 +21,6 @@ services:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
- LETSENCRYPT_EMAIL= - LETSENCRYPT_EMAIL=
environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
- db.env - db.env