-
Notifications
You must be signed in to change notification settings - Fork 7
/
jepsen-compose.yml
127 lines (125 loc) · 4.06 KB
/
jepsen-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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: '2.2'
services:
zookeeper1:
build:
context: ./docker/zookeeper
args:
- VERSION=${ZK_VERSION}
privileged: true
hostname: pgconsul_zookeeper1_1
domainname: pgconsul_pgconsul_net
container_name: pgconsul_zookeeper1_1
init: true
networks:
pgconsul_net:
ipv4_address: 192.168.233.10
zookeeper2:
build:
context: ./docker/zookeeper
args:
- VERSION=${ZK_VERSION}
privileged: true
hostname: pgconsul_zookeeper2_1
domainname: pgconsul_pgconsul_net
container_name: pgconsul_zookeeper2_1
init: true
networks:
pgconsul_net:
ipv4_address: 192.168.233.11
zookeeper3:
build:
context: ./docker/zookeeper
args:
- VERSION=${ZK_VERSION}
privileged: true
hostname: pgconsul_zookeeper3_1
domainname: pgconsul_pgconsul_net
container_name: pgconsul_zookeeper3_1
init: true
networks:
pgconsul_net:
ipv4_address: 192.168.233.12
backup1:
build: ./docker/backup
hostname: pgconsul_backup1_1
domainname: pgconsul_pgconsul_net
init: true
networks:
pgconsul_net:
ipv4_address: 192.168.233.13
postgresql1:
build: ./docker/pgconsul
privileged: true
hostname: pgconsul_postgresql1_1
domainname: pgconsul_pgconsul_net
container_name: pgconsul_postgresql1_1
init: true
extra_hosts:
- "pgconsul_postgresql2_1.pgconsul_pgconsul_net:192.168.233.15"
- "pgconsul_postgresql3_1.pgconsul_pgconsul_net:192.168.233.16"
- "pgconsul_zookeeper1_1.pgconsul_pgconsul_net:192.168.233.10"
- "pgconsul_zookeeper2_1.pgconsul_pgconsul_net:192.168.233.11"
- "pgconsul_zookeeper3_1.pgconsul_pgconsul_net:192.168.233.12"
- "pgconsul_backup1_1.pgconsul_pgconsul_net:192.168.233.13"
networks:
pgconsul_net:
ipv4_address: 192.168.233.14
postgresql2:
build: ./docker/pgconsul
privileged: true
hostname: pgconsul_postgresql2_1
domainname: pgconsul_pgconsul_net
container_name: pgconsul_postgresql2_1
init: true
extra_hosts:
- "pgconsul_postgresql1_1.pgconsul_pgconsul_net:192.168.233.14"
- "pgconsul_postgresql3_1.pgconsul_pgconsul_net:192.168.233.16"
- "pgconsul_zookeeper1_1.pgconsul_pgconsul_net:192.168.233.10"
- "pgconsul_zookeeper2_1.pgconsul_pgconsul_net:192.168.233.11"
- "pgconsul_zookeeper3_1.pgconsul_pgconsul_net:192.168.233.12"
- "pgconsul_backup1_1.pgconsul_pgconsul_net:192.168.233.13"
networks:
pgconsul_net:
ipv4_address: 192.168.233.15
postgresql3:
build: ./docker/pgconsul
privileged: true
hostname: pgconsul_postgresql3_1
domainname: pgconsul_pgconsul_net
container_name: pgconsul_postgresql3_1
init: true
extra_hosts:
- "pgconsul_postgresql1_1.pgconsul_pgconsul_net:192.168.233.14"
- "pgconsul_postgresql2_1.pgconsul_pgconsul_net:192.168.233.15"
- "pgconsul_zookeeper1_1.pgconsul_pgconsul_net:192.168.233.10"
- "pgconsul_zookeeper2_1.pgconsul_pgconsul_net:192.168.233.11"
- "pgconsul_zookeeper3_1.pgconsul_pgconsul_net:192.168.233.12"
- "pgconsul_backup1_1.pgconsul_pgconsul_net:192.168.233.13"
networks:
pgconsul_net:
ipv4_address: 192.168.233.16
jepsen:
build: ./docker/jepsen
hostname: pgconsul_jepsen_1
domainname: pgconsul_pgconsul_net
container_name: pgconsul_jepsen_1
init: true
extra_hosts:
- "pgconsul_postgresql1_1.pgconsul_pgconsul_net:192.168.233.14"
- "pgconsul_postgresql2_1.pgconsul_pgconsul_net:192.168.233.15"
- "pgconsul_postgresql3_1.pgconsul_pgconsul_net:192.168.233.16"
- "pgconsul_zookeeper1_1.pgconsul_pgconsul_net:192.168.233.10"
- "pgconsul_zookeeper2_1.pgconsul_pgconsul_net:192.168.233.11"
- "pgconsul_zookeeper3_1.pgconsul_pgconsul_net:192.168.233.12"
- "pgconsul_backup1_1.pgconsul_pgconsul_net:192.168.233.13"
networks:
pgconsul_net:
ipv4_address: 192.168.233.17
networks:
pgconsul_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.233.0/24
gateway: 192.168.233.1