-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
40 lines (37 loc) · 767 Bytes
/
Copy pathcompose.yaml
File metadata and controls
40 lines (37 loc) · 767 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
services:
db:
image: postgres:17-alpine
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=chat-space
env_file:
- .env
redis:
image: "redis:latest"
restart: always
ports:
- "6379:6379"
environment:
- redis-server --appendonly yes
volumes:
- "redis-data:/data"
rabbitmq:
image: rabbitmq:4-alpine
ports:
- "5672:5672"
volumes:
- "rabbitmq-data:/var/lib/rabbitmq"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
volumes:
postgres-data:
driver: local
redis-data:
driver: local
rabbitmq-data:
driver: local