-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (36 loc) · 1.01 KB
/
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
services:
mongo1:
image: mongo
container_name: mongo1
command: ["--replSet", "replica-set", "--bind_ip_all", "--port", "30001"]
ports:
- 30001:30001
healthcheck:
test: test $$(echo "rs.initiate({_id:'replica-set',members:[{_id:0,host:\"mongo1:30001\"},{_id:1,host:\"mongo2:30002\"},{_id:2,host:\"mongo3:30003\"}]}).ok || rs.status().ok" | mongosh --port 30001 --quiet) -eq 1
interval: 10s
start_period: 30s
mongo2:
image: mongo
container_name: mongo2
command: ["--replSet", "replica-set", "--bind_ip_all", "--port", "30002"]
ports:
- 30002:30002
mongo3:
image: mongo
container_name: mongo3
command: ["--replSet", "replica-set", "--bind_ip_all", "--port", "30003"]
ports:
- 30003:30003
redis:
image: redis
container_name: redis
ports:
- 6379:6379
jaeger:
image: jaegertracing/all-in-one
container_name: jaeger
ports:
- 16686:16686
- 4318:4318
environment:
- COLLECTOR_OTLP_ENABLED=true