2023-09-30 15:01:04 +02:00
|
|
|
---
|
|
|
|
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
|
2023-09-30 17:59:57 +02:00
|
|
|
- ${PERCONA_DATA}/conf:/etc/percona-xtradb-cluster.conf.d
|
2023-09-30 15:01:04 +02:00
|
|
|
- ${PERCONA_DATA}/mysql:/var/lib/mysql
|