-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathdocker-compose.state-e2e.yml
More file actions
63 lines (59 loc) · 1.44 KB
/
docker-compose.state-e2e.yml
File metadata and controls
63 lines (59 loc) · 1.44 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
version: '3.8'
services:
mongodb:
image: mongo:6
container_name: statee2e-mongodb
ports:
- "27017:27017"
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.runCommand({ ping: 1 })"]
interval: 10s
timeout: 5s
retries: 10
rabbitmq:
image: rabbitmq:3-management
container_name: statee2e-rabbitmq
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 10s
timeout: 5s
retries: 15
redis-master:
image: "bitnami/redis"
container_name: statee2e-redis-master
environment:
- REDIS_REPLICATION_MODE=master
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 10
redis-sentinel:
image: "bitnami/redis-sentinel"
container_name: statee2e-redis-sentinel
depends_on:
- redis-master
environment:
- REDIS_MASTER_SET=mymaster
- REDIS_MASTER_HOST=redis-master
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS=10000
ports:
- "26379:26379"
healthcheck:
test: ["CMD-SHELL", "redis-cli -p 26379 ping | grep PONG"]
interval: 10s
timeout: 5s
retries: 10
networks:
default:
name: statee2e-net