percona-xtradb-cluster/docker-compose.yml

20 lines
543 B
YAML

---
services:
percona:
image: percona/percona-xtradb-cluster:${PERCONA_VERSION}
restart: unless-stopped
environment:
- CLUSTER_NAME=${PERCONA_CLUSTER_NAME}
- MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD}
hostname: ${PERCONA_HOSTNAME}
ports:
- 3306:3306/tcp
- 4444:4444/tcp
- 4567:4567/tcp
- 4567:4567/udp
- 4568:4568/tcp
volumes:
- ${PERCONA_DATA}/cert:/cert
- ${PERCONA_DATA}/config:/etc/percona-xtradb-cluster.conf.d
- ${PERCONA_DATA}/mysql:/var/lib/mysql