Skip to content

Instantly share code, notes, and snippets.

@letsjustfixit
Forked from frazr/docker-compose.yml
Created December 31, 2019 01:13
Show Gist options
  • Save letsjustfixit/9f9ae657d505a8947601e4407faa82ad to your computer and use it in GitHub Desktop.
Save letsjustfixit/9f9ae657d505a8947601e4407faa82ad 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