-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 770 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 770 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
version: '3.9'
services:
app:
build: .
ports:
- "8000:8000"
env_file:
- .env
depends_on:
rabbitmq:
condition: service_healthy
db:
condition: service_healthy
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672" # RabbitMQ connection
- "15672:15672" # Management UI
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 5s
retries: 10
timeout: 5s
db:
image: postgres:16
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: notification_db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
retries: 5
timeout: 5s