From 577ff54b455a0ab616738f48a060580e706a93d0 Mon Sep 17 00:00:00 2001 From: Jorge Villasenor Date: Sun, 22 Oct 2017 20:44:40 -0700 Subject: [PATCH 1/2] 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. --- .../with-nginx-proxy/mariadb/apache/docker-compose.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/docker-compose.yml b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/docker-compose.yml index 8617cf5..45406dc 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb/apache/docker-compose.yml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb/apache/docker-compose.yml @@ -21,7 +21,6 @@ services: - VIRTUAL_HOST= - LETSENCRYPT_HOST= - LETSENCRYPT_EMAIL= - environment: - MYSQL_HOST=db env_file: - db.env From 813de3656dd2154779c7719b4da6b58496627511 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Tue, 24 Oct 2017 12:39:01 +0200 Subject: [PATCH 2/2] Allow compose to find all env variables --- .../mariadb-cron-redis/apache/docker-compose.yml | 1 - .../with-nginx-proxy/postgres/apache/docker-compose.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.yml b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.yml index e01be64..54da789 100644 --- a/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.yml +++ b/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.yml @@ -25,7 +25,6 @@ services: - VIRTUAL_HOST= - LETSENCRYPT_HOST= - LETSENCRYPT_EMAIL= - environment: - MYSQL_HOST=db env_file: - db.env diff --git a/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml b/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml index f2b37cf..1f59469 100644 --- a/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml +++ b/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml @@ -18,7 +18,6 @@ services: - VIRTUAL_HOST= - LETSENCRYPT_HOST= - LETSENCRYPT_EMAIL= - environment: - POSTGRES_HOST=db env_file: - db.env