-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
151 lines (143 loc) · 3.22 KB
/
docker-compose.yml
File metadata and controls
151 lines (143 loc) · 3.22 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
version: '3.1'
x-common-env: &common-env
COUCHDB_USER: admin
COUCHDB_PASSWORD: abc123
x-healthcheck: &healthcheck
test: ["CMD-SHELL", "curl -f http://localhost:5984/_up || exit 1"]
interval: 1m
timeout: 2s
retries: 3
start_period: 10s
services:
couch22:
container_name: couch22
image: couchdb:2.2.0
restart: always
environment:
<<: *common-env
ports:
- "6002:5984"
healthcheck:
<<: *healthcheck
couch22setup:
image: curlimages/curl:8.5.0
restart: "no"
environment:
<<: *common-env
depends_on:
couch22:
condition: service_healthy
volumes:
- ./script/complete_couch2.sh:/complete_couch2.sh
entrypoint: /complete_couch2.sh
command: http://couch22:5984/
couch23:
container_name: couch23
image: couchdb:2.3.1
restart: always
environment:
<<: *common-env
ports:
- "6003:5984"
healthcheck:
<<: *healthcheck
couch23setup:
image: curlimages/curl:8.5.0
restart: "no"
environment:
<<: *common-env
depends_on:
couch22:
condition: service_healthy
volumes:
- ./script/complete_couch2.sh:/complete_couch2.sh
entrypoint: /complete_couch2.sh
command: http://couch23:5984/
couch30:
container_name: couch30
image: couchdb:3.0.0
restart: always
environment:
<<: *common-env
ports:
- "6004:5984"
healthcheck:
<<: *healthcheck
couch30setup:
image: curlimages/curl:8.5.0
restart: "no"
environment:
<<: *common-env
depends_on:
couch22:
condition: service_healthy
volumes:
- ./script/complete_couch2.sh:/complete_couch2.sh
entrypoint: /complete_couch2.sh
command: http://couch30:5984/
couch31:
container_name: couch31
image: couchdb:3.1.2
restart: always
environment:
<<: *common-env
ports:
- "6005:5984"
healthcheck:
<<: *healthcheck
couch31setup:
image: curlimages/curl:8.5.0
restart: "no"
environment:
<<: *common-env
depends_on:
couch22:
condition: service_healthy
volumes:
- ./script/complete_couch2.sh:/complete_couch2.sh
entrypoint: /complete_couch2.sh
command: http://couch31:5984/
couch32:
container_name: couch32
image: couchdb:3.2.3
restart: always
environment:
<<: *common-env
ports:
- "6006:5984"
healthcheck:
<<: *healthcheck
couch32setup:
image: curlimages/curl:8.5.0
restart: "no"
environment:
<<: *common-env
depends_on:
couch22:
condition: service_healthy
volumes:
- ./script/complete_couch2.sh:/complete_couch2.sh
entrypoint: /complete_couch2.sh
command: http://couch32:5984/
couch33:
container_name: couch33
image: couchdb:3.3.3
restart: always
environment:
<<: *common-env
ports:
- "6007:5984"
healthcheck:
<<: *healthcheck
couch33setup:
image: curlimages/curl:8.5.0
restart: "no"
environment:
<<: *common-env
depends_on:
couch22:
condition: service_healthy
volumes:
- ./script/complete_couch2.sh:/complete_couch2.sh
entrypoint: /complete_couch2.sh
command: http://couch33:5984/