Fatih Degirmenci | c2a4601 | 2019-09-30 12:07:45 +0200 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | # find where we are | ||||
4 | APP_PATH=$(git rev-parse --show-toplevel) | ||||
5 | cd $APP_PATH | ||||
6 | |||||
7 | # set the environment file | ||||
8 | ENV_FILE=/data/nolabs/config/.env | ||||
9 | |||||
10 | # source environment settings | ||||
11 | set -a | ||||
12 | source $ENV_FILE | ||||
13 | set +a | ||||
14 | |||||
15 | # start mysql | ||||
16 | docker run --rm --name $MYSQL_CONTAINER_NAME -d --net host \ | ||||
17 | -v /data/mysql/datadir:/var/lib/mysql --env-file $ENV_FILE \ | ||||
18 | mysql/mysql-server:5.7.27 |