-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 961 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
version: '3'
services:
pg-master:
build: '.'
image: 'pg-wal'
restart: 'always'
cap_add:
- NET_ADMIN
ports:
- "5432:5432"
expose:
- '5432'
volumes:
- '/var/lib/postgresql/data'
- ./docker/master.env:/app.env
- ./main.py:/app/main.py
- ./agent.py:/app/agent.py
pg-slave:
build: '.'
image: 'pg-wal'
restart: 'always'
cap_add:
- NET_ADMIN
ports:
- "5433:5432"
expose:
- '5432'
volumes:
- '/var/lib/postgresql/data'
- ./docker/slave.env:/app.env
- ./main.py:/app/main.py
- ./agent.py:/app/agent.py
links:
- 'pg-master'
pg-arbiter:
build: '.'
image: 'pg-wal'
restart: 'always'
cap_add:
- NET_ADMIN
expose:
- '5000'
- '5432'
volumes:
- '/var/lib/postgresql/data'
- ./docker/arbiter.env:/app.env
- ./main.py:/app/main.py
- ./agent.py:/app/agent.py