-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 930 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (45 loc) · 930 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
42
43
44
45
services:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
env_file:
- ./.env
db:
image: postgres:15-alpine
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE} || exit 1"]
interval: 30s
timeout: 10s
retries: 5
redis:
image: redis:alpine
ports:
- "6379:6379"
rq_worker_emails:
build: .
depends_on:
redis:
condition: service_started
env_file:
- ./.env
volumes:
- .:/app
command: python -m workers.email_worker
volumes:
postgres_data: