Skip to content

Commit

Permalink
Added environmental variables to docker-compose files.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhiiva committed Jan 5, 2021
1 parent 7d716c8 commit 82216eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose-python3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ services:
DB_PORT: 3306
APP_DB_NAME: agagd
AGAGD_USER: agagd
MYSQL_PASS: "${MYSQL_PASS}"
MYSQL_PASSWORD: "${MYSQL_PASS}"
SECRET_KEY: insecure-key-for-testing
DEBUG: "true"
LOAD_FIXTURES: "true"
Expand All @@ -38,8 +40,10 @@ services:
# this is safer than it looks, since without a 'ports' section, docker-compose
# isolates this app to a network local to this compose file.
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: agagd
MYSQL_DATABASE: agagd
MYSQL_PASS: "${MYSQL_PASS}"

volumes:
database:
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
DB_PORT: 3306
APP_DB_NAME: agagd
AGAGD_USER: agagd
MYSQL_PASS: "${MYSQL_PASS}"
MYSQL_PASSWORD: "${MYSQL_PASS}"
SECRET_KEY: insecure-key-for-testing
DEBUG: "true"
LOAD_FIXTURES: "true"
Expand All @@ -36,8 +38,10 @@ services:
# this is safer than it looks, since without a 'ports' section, docker-compose
# isolates this app to a network local to this compose file.
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: agagd
MYSQL_DATABASE: agagd
MYSQL_PASS: "${MYSQL_PASS}"

volumes:
database:

0 comments on commit 82216eb

Please sign in to comment.