mirror of
https://github.com/newnius/YAO-docs.git
synced 2024-07-06 05:15:18 +00:00
rearrange, bugfix
This commit is contained in:
15
sbin/start_mysql.sh
Executable file
15
sbin/start_mysql.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#! /bin/bash
|
||||
|
||||
docker service create \
|
||||
--name mysql \
|
||||
--hostname mysql \
|
||||
--network yao-net \
|
||||
--replicas 1 \
|
||||
--detach=true \
|
||||
--endpoint-mode dnsrr \
|
||||
-e MYSQL_ROOT_PASSWORD=123456 \
|
||||
-e MYSQL_DATABASE=yao \
|
||||
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
|
||||
mysql:5.7
|
||||
|
||||
#--mount type=bind,source=/data/mysql,target=/var/lib/mysql \
|
||||
Reference in New Issue
Block a user