-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (90 loc) · 1.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
90 lines (90 loc) · 1.64 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3'
services:
gtm_1:
environment:
- PG_GTM_NODE=gtm_1
build:
context: .
dockerfile: Dockerfile.gtm
volumes:
- gtm_1:/var/lib/postgresql
networks:
- db_a
coordinator_1:
environment:
- PG_COORD_NODE=coordinator_1
- PG_GTM_HOST=gtm_1
build:
context: .
dockerfile: Dockerfile.coordinator
volumes:
- coordinator_1:/var/lib/postgresql
depends_on:
- gtm_1
networks:
- db_a
- db_b
coordinator_2:
environment:
- PG_COORD_NODE=coordinator_2
- PG_GTM_HOST=gtm_1
build:
context: .
dockerfile: Dockerfile.coordinator
volumes:
- coordinator_2:/var/lib/postgresql
depends_on:
- gtm_1
networks:
- db_a
- db_b
data_1:
environment:
- PG_DATA_NODE=data_1
- PG_GTM_HOST=gtm_1
build:
context: .
dockerfile: Dockerfile.datanode
depends_on:
- gtm_1
volumes:
- data_1:/var/lib/postgresql
networks:
- db_a
data_2:
environment:
- PG_DATA_NODE=data_2
- PG_GTM_HOST=gtm_1
build:
context: .
dockerfile: Dockerfile.datanode
depends_on:
- gtm_1
volumes:
- data_2:/var/lib/postgresql
networks:
- db_a
volumes:
gtm_1:
driver: local
coordinator_1:
driver: local
coordinator_2:
driver: local
data_1:
driver: local
data_2:
driver: local
networks:
db_a:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.19.0.0/16
db_b:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.18.0.0/16