percona-xtradb-cluster/docker-compose.yml
2023-09-30 17:59:57 +02:00

20 lines
541 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}/conf:/etc/percona-xtradb-cluster.conf.d
- ${PERCONA_DATA}/mysql:/var/lib/mysql