Skip to content

Commit

Permalink
introduce environment variables WEBWORK_DB_USER and WEBWORK_DB_PASSWORD
Browse files Browse the repository at this point in the history
and remove comments on old default
  • Loading branch information
heiderich committed Aug 20, 2019
1 parent f4d3573 commit cf7e0f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
COURSES_DIRECTORY_ON_HOST=../ww-docker-data/courses
WEBWORK2_HTTP_PORT_ON_HOST=8080
WEBWORK_DB_USER=webworkWrite
WEBWORK_DB_PASSWORD=passwordRWsetItBeforeFirstStartingTheDBcontainer
11 changes: 3 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ services:
# When the MariaDB container is first started it will create
# the WW database and WW DB user based on:
MYSQL_DATABASE: webwork
MYSQL_USER: webworkWrite
MYSQL_PASSWORD: passwordRWsetItBeforeFirstStartingTheDBcontainer
# Old default:
#MYSQL_PASSWORD: passwordRW
MYSQL_USER: ${WEBWORK_DB_USER}
MYSQL_PASSWORD: ${WEBWORK_DB_PASSWORD}

app:
image: webwork
Expand Down Expand Up @@ -140,10 +138,7 @@ services:

APACHE_RUN_GROUP: www-data

WEBWORK_DB_PASSWORD: passwordRWsetItBeforeFirstStartingTheDBcontainer
# should be the same password as MYSQL_PASSWORD above.
# Old default:
#WEBWORK_DB_PASSWORD: passwordRW
WEBWORK_DB_PASSWORD: ${WEBWORK_DB_PASSWORD}

# =======================================================
# Local configuration variables:
Expand Down

0 comments on commit cf7e0f8

Please sign in to comment.