Last active
September 22, 2018 07:22
-
-
Save poctek/6e1d74e97634aca0606a7431a4584eae to your computer and use it in GitHub Desktop.
cluster docker compose
This file contains hidden or 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: '3' | |
services: | |
master: | |
image: poctek5/postgres_base:latest | |
volumes: | |
- ./tmp/db:/var/lib/postgresql/data | |
ports: | |
- "5432:5432" | |
slave_eu: | |
image: poctek5/postgres_base:latest | |
volumes: | |
- ./tmp/slave_eu:/var/lib/postgresql/data | |
ports: | |
- "5433:5432" | |
slave_us: | |
image: poctek5/postgres_base:latest | |
volumes: | |
- ./tmp/slave_us:/var/lib/postgresql/data | |
ports: | |
- "5434:5432" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment