Skip to content

Instantly share code, notes, and snippets.

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