Skip to content

Instantly share code, notes, and snippets.

@mbornoz
Created May 26, 2016 15:49
Show Gist options
  • Save mbornoz/62790aa052cce49c41adb07da6969c82 to your computer and use it in GitHub Desktop.
Save mbornoz/62790aa052cce49c41adb07da6969c82 to your computer and use it in GitHub Desktop.
version: "2"
services:
lb:
container_name: lb
image: haproxy-postgresql
ports:
- 8080:8080
- 5432:5432
- 5433:5433
links:
- pg1
- pg2
- pg3
pg1:
container_name: pg1
image: postgresql:9.5
pgcheck1:
image: camptocamp/pgcheck
network_mode: "container:pg1"
pg2:
container_name: pg2
image: postgresql:9.5
environment:
- PG_REPLICA=true
pg3:
container_name: pg3
image: postgresql:9.5
environment:
- PG_REPLICA=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment