Created
May 27, 2016 08:22
-
-
Save mbornoz/83ea33dccf52eb5e6b5f0f955a769846 to your computer and use it in GitHub Desktop.
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: "2" | |
services: | |
lb: | |
container_name: lb | |
image: haproxy:1.6 | |
ports: | |
- 8080:8080 | |
- 5432:5432 | |
- 5433:5433 | |
links: | |
- pg1 | |
- pg2 | |
- pg3 | |
volumes: | |
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg | |
pg1: | |
container_name: pg1 | |
image: postgres | |
pgcheck1: | |
image: camptocamp/pgcheck | |
container_name: pgcheck1 | |
network_mode: "container:pg1" | |
restart: always | |
pg2: | |
container_name: pg2 | |
image: postgres | |
restart: always | |
pgcheck2: | |
image: camptocamp/pgcheck | |
container_name: pgcheck2 | |
network_mode: "container:pg2" | |
restart: always | |
pg3: | |
container_name: pg3 | |
image: postgres | |
restart: always | |
pgcheck3: | |
image: camptocamp/pgcheck | |
container_name: pgcheck3 | |
network_mode: "container:pg3" | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment