-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
58 lines (57 loc) · 1.3 KB
/
docker-compose.yaml
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
version: "3"
services:
redis:
image: redis:alpine
command: ["redis-server", "--bind", "0.0.0.0", "--port", "6379"]
container_name: client
networks:
- hi-services
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 10s
timeout: 3s
retries: 3
start_period: 20s
rabbitmq:
image: rabbitmq
container_name: rabbit
networks:
- hi-services
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 3s
retries: 3
start_period: 20s
cassandra:
image: cassandra:latest
container_name: cassandra
networks:
- hi-services
healthcheck:
test: ["CMD","nodetool", "status"]
interval: 10s
timeout: 10s
retries: 10
start_period: 20s
mongodb:
image: mongo:latest
container_name: mongodb
networks:
- hi-services
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 10
start_period: 20s
io-server:
image: manik2708/hi-io-server:latest
environment:
REDIS_URL: redis://client:6379
container_name: hi-io-server
networks:
- hi-services
networks:
hi-services:
external: true