-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 983 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "2"
services:
bastion:
hostname: bastion
image: wiwwo:pgplaygrd
ports:
- "22:22"
environment:
- WHAT_AM_I=bastion
networks:
- myNetwork0
pg_red:
hostname: pg_red
image: wiwwo:pgplaygrd
ports:
- "5445:5432"
environment:
- WHAT_AM_I=primary
networks:
- myNetwork0
pg_green:
hostname: pg_green
image: wiwwo:pgplaygrd
depends_on:
- pg_red
ports:
- "5446:5432"
environment:
- WHAT_AM_I=replica
- NEW_PRIMARY=pg_red
networks:
- myNetwork0
restart: always
pg_blue:
hostname: pg_blue
image: wiwwo:pgplaygrd
depends_on:
- pg_red
ports:
- "5447:5432"
environment:
- WHAT_AM_I=replica
- NEW_PRIMARY=pg_red
- RECOVERY_MIN_APPLY_DELAY=2m
networks:
- myNetwork0
restart: always
networks:
myNetwork0: