summaryrefslogtreecommitdiffstats
path: root/dockerfiles/run.sh
blob: 7721ab41d45f6b7e2c740fbee9abf1992aeb99cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Configs
MYSQL_PASSWORD="kuajie8402"
MYSQL_RUN_NAME="gogs_mysql"
typeset -u MYSQL_ALIAS
MYSQL_ALIAS="db"
HOST_PORT="3000"

## Run MySQL image with name
docker run -d --name $MYSQL_RUN_NAME gogs/mysql
#
## Run gogits image and link it to the MySQL image
docker run --link $MYSQL_RUN_NAME:$MYSQL_ALIAS -p $HOST_PORT:3000 gogs/gogits