From 5280d2fa118389c1d613bd333eb01db31201c451 Mon Sep 17 00:00:00 2001 From: Leopere Date: Mon, 15 Oct 2018 03:07:06 -0400 Subject: [PATCH] Start pulling envvars from .env This is unnecessery but if you have to declare the same thing in more then one place it makes sense to pull these from a file. In certain environments it would make more sense to declare them explicitly under a environment: directive --- reflector.go/docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reflector.go/docker-compose.yml b/reflector.go/docker-compose.yml index 6b88d4e..b41ffb3 100644 --- a/reflector.go/docker-compose.yml +++ b/reflector.go/docker-compose.yml @@ -18,6 +18,8 @@ services: ipv4_address: 10.5.1.11 aliases: - mysql + env_file: + - .env environment: ## These variables are stored in the .env file next to this docker-compose.yml file. ## I will include a default .env file and .gitignore the ".env" pattern so you should be able to just git pull in the future if you need to. @@ -40,6 +42,8 @@ services: networks: traefik: ipv4_address: 10.5.1.20 + env_file: + - .env environment: AWS_ID: ${AWS_ID:-default} AWS_SECRET: ${AWS_SECRET:-default}