Percona XtraDB Cluster 5.7 with Docker Swarm Discovery. No etcd
200
Dockerfile links5.7 (mysql/Dockerfile) - Percona-XtraDB-Cluster-5.7.18-29.20https://github.com/percona/percona-docker/pull/13
docker network create --opt encrypted --driver overlay mysql_net
docker service create \
--publish 3306:3306 \
--name mysql \
--replicas 1 \
--network mysql_net \
-e MYSQL_ROOT_PASSWORD=1 \
-e CLUSTER_NAME=cl \
-e SERVICE_ID={{.Service.ID}} \
-e SERVICE_NAME={{.Service.Name}} \
-e TASK_ID={{.Task.ID}} \
-e TASK_NAME={{.Task.Name}} \
-e TASK_SLOT={{.Task.Slot}} \
--mount type=bind,src=/home/apps/volumes/mysql/{{.Task.Slot}},dst=/var/lib/mysql \
--mount type=bind,src=/home/apps/log/mysql/{{.Task.Slot}},dst=/var/log/mysql \
gleez/mysql:5.7 bash -c "(/entrypoint.sh mysqld &) && while true; do dig +short tasks.mysql | xargs -n1 ping -w1 -c1 ; sleep 2; done"
Content type
Image
Digest
Size
138.6 MB
Last updated
over 9 years ago
docker pull gleez/mysql:5.7