-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 793 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 793 Bytes
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
services:
mongodb:
image: mongo:8.2.3
ports:
- '27017:27017'
volumes:
- mongodb_data:/data/db
networks:
- auth-network
restart: unless-stopped
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 5
start_period: 40s
redis:
image: redis:8.4.0
ports:
- '6379:6379'
volumes:
- redis_data:/data
networks:
- auth-network
restart: unless-stopped
command: redis-server --appendonly yes
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
volumes:
mongodb_data:
redis_data:
networks:
auth-network:
driver: bridge