Skip to content

Commit

Permalink
Add ENVIRONMENT to vars containers get
Browse files Browse the repository at this point in the history
This is in support of these tickets:

* freezingsaddles/freezing-nq#4
* freezingsaddles/freezing-sync#14
* freezingsaddles/freezing-web#131

Having an environment variable is a practice I've used in so many places
and I want it here too.
  • Loading branch information
obscurerichard committed Dec 14, 2019
1 parent 651a11b commit 7dcf0c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ services:
- beanstalkd:beanstalkd.container
- datadog:datadog.container
environment:
ENVIRONMENT: ${ENVIRONMENT}
DEBUG: ${DEBUG}
BEANSTALKD_HOST: beanstalkd.container
BEANSTALKD_PORT: 11300
Expand Down Expand Up @@ -177,6 +178,7 @@ services:
links:
- beanstalkd:beanstalkd.container
environment:
ENVIRONMENT: ${ENVIRONMENT}
VIRTUAL_HOST: ${FREEZING_NQ_FQDN}
LETSENCRYPT_HOST: ${FREEZING_NQ_FQDN}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
Expand All @@ -199,6 +201,7 @@ services:
links:
- beanstalkd:beanstalkd.container
environment:
ENVIRONMENT: ${ENVIRONMENT}
VIRTUAL_HOST: ${FREEZING_WEB_FQDN}
LETSENCRYPT_HOST: ${FREEZING_WEB_FQDN}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
Expand Down
7 changes: 7 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# freezing-compose .env file
# See https://github.com/freezingsaddles/freezing-compose

#
# MySQL Settings - for freezing-mysql container
# ---------------------------------------------
#
Expand All @@ -23,6 +27,9 @@ MYSQL_PORT=3306
# Title for the competition
COMPETITION_TITLE=Freezing Saddles

# Put your environment name here - e.g. "production", "staging", "localdev"
ENVIRONMENT=sample

# Flask session keying secret key. Set it to something unique, for example:
# python -c 'import uuid; print(uuid.uuid4())'
SECRET_KEY=deadbeef
Expand Down

0 comments on commit 7dcf0c6

Please sign in to comment.