Skip to content

Instantly share code, notes, and snippets.

@mbornoz
Created May 27, 2016 08:24
Show Gist options
  • Save mbornoz/a809b5ba28649a415291a4d3b08c0959 to your computer and use it in GitHub Desktop.
Save mbornoz/a809b5ba28649a415291a4d3b08c0959 to your computer and use it in GitHub Desktop.
version: "2"
services:
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