Created
March 24, 2018 00:06
-
-
Save frazr/2c6f48da9dd31644620a6b0750b85e79 to your computer and use it in GitHub Desktop.
Percona XtraDB Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
node1: | |
container_name: node1 | |
image: percona/percona-xtradb-cluster:5.7 | |
environment: | |
- CLUSTER_NAME=cluster1 | |
- MYSQL_ROOT_PASSWORD=root | |
networks: | |
- pxc-network | |
node2: | |
container_name: node2 | |
image: percona/percona-xtradb-cluster:5.7 | |
environment: | |
- CLUSTER_NAME=cluster1 | |
- CLUSTER_JOIN=node1 | |
- MYSQL_ROOT_PASSWORD=root | |
networks: | |
- pxc-network | |
node3: | |
container_name: node3 | |
image: percona/percona-xtradb-cluster:5.7 | |
environment: | |
- CLUSTER_NAME=cluster1 | |
- CLUSTER_JOIN=node1 | |
- MYSQL_ROOT_PASSWORD=root | |
networks: | |
- pxc-network | |
networks: | |
pxc-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment