Skip to content

Instantly share code, notes, and snippets.

@frazr
Created March 24, 2018 00:06
Show Gist options
  • Save frazr/2c6f48da9dd31644620a6b0750b85e79 to your computer and use it in GitHub Desktop.
Save frazr/2c6f48da9dd31644620a6b0750b85e79 to your computer and use it in GitHub Desktop.
Percona XtraDB Example
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