Created
March 24, 2018 00:13
-
-
Save frazr/3ecf64685e1f0347117d7d35ec22e1a3 to your computer and use it in GitHub Desktop.
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