Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lbailey-ucsf authored Jul 16, 2024
1 parent b107301 commit 33e2a56
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .tugboat/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ services:
- mkdir /var/www/behatdata
- mkdir /var/www/behatfaildumps
- chmod 0777 /var/www/moodledata



build:
# - npm install
Expand All @@ -65,6 +63,11 @@ services:
- export MYSQL_DATABASE=moodle
- export MYSQL_USER=moodle
- export MYSQL_PASSWORD=m00dl3ing
- mysql -u root -p"$MYSQL_ROOT_PASSWORD" -e "CREATE DATABASE IF NOT EXISTS $MYSQL_DATABASE; GRANT ALL PRIVILEGES ON $MYSQL_DATABASE.* TO '$MYSQL_USER'@'%' IDENTIFIED BY '$MYSQL_PASSWORD'; FLUSH PRIVILEGES;"
- mysql -e "CREATE DATABASE IF NOT EXISTS moodle; GRANT ALL PRIVILEGES ON moodle.* TO 'moodle'@'%' IDENTIFIED BY 'moodl3ing'; FLUSH PRIVILEGES;"
- mysql -e "ALTER USER 'tugboat'@'%' IDENTIFIED WITH mysql_native_password BY 'tugboat';"
#ports:
# - "${MOODLE_DOCKER_DB_PORT}:3306/tcp"

phpmyadmin:
expose: 80
image: phpmyadmin/phpmyadmin

0 comments on commit 33e2a56

Please sign in to comment.