blob: a4ab89e28c4bfe5562ebdf6c82a51bcf54e99716 [file] [log] [blame]
Fatih Degirmencic2a46012019-09-30 12:07:45 +02001#!/bin/bash
2
3# find where we are
4APP_PATH=$(git rev-parse --show-toplevel)
5cd $APP_PATH
6
7# set the environment file
8ENV_FILE=/data/nolabs/config/.env
9
10# source environment settings
11set -a
12source $ENV_FILE
13set +a
14
15# start mysql
16docker 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