Commit 9095e6a1 authored by BAIRE Anthony's avatar BAIRE Anthony

get the name of the mysql container from config

parent 69e657d7
......@@ -15,12 +15,12 @@ mkdir -p \
/vol/cache/nginx
# wait until the mysql server is ready
wait-socket "dev-mysql:3306"
wait-socket "$ENV-mysql:3306"
# dump the database and execute the migration
/bin/bash /opt/allgo/tools/migration.sh -e allgo allgo dev-mysql allgo
/bin/bash /opt/allgo/tools/migration.sh -d allgo allgo dev-mysql allgo
/bin/bash /opt/allgo/tools/migration.sh -m allgo allgo dev-mysql allgo
/bin/bash /opt/allgo/tools/migration.sh -e allgo allgo "$ENV-mysql" allgo
/bin/bash /opt/allgo/tools/migration.sh -d allgo allgo "$ENV-mysql" allgo
/bin/bash /opt/allgo/tools/migration.sh -m allgo allgo "$ENV-mysql" allgo
# Run supervisor in order to launch both nginx and gunicorn
exec supervisord -n
......@@ -109,6 +109,9 @@ services:
- "/data/dev/django:/vol"
- "./django:/opt/allgo"
environment:
ENV: dev
networks: [dev]
tty: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment