-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
50 lines (47 loc) · 1.16 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
41
42
43
44
45
46
47
48
49
50
services:
postgres:
# Last time I have checked, production is running 14.10
image: postgres:14-alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
rabbitmq:
# Last time I have checked, production is running 3.12.6
image: rabbitmq:3-alpine
ports:
- "15672:15672"
- "5672:5672"
volumes:
- "./rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins"
healthcheck:
test: ["CMD-SHELL", "rabbitmq-diagnostics", "-q", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
redis:
command: redis-server --appendonly yes
# Last time I have checked, production is running 6.2.14
image: redis:6-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
pg_data:
redis_data: