-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.22 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
services:
celery-beat:
build:
context: .
dockerfile: Dockerfile
command: celery -A app.tasks beat -l info
environment:
- TZ=Europe/Madrid
volumes:
- .:/app
depends_on:
- redis
- db
celery-worker:
build:
context: .
dockerfile: Dockerfile
command: celery -A app.tasks worker -l info
env_file:
- .env
environment:
- TZ=Europe/Madrid
- WORKER_ID="Europe - 127.0.0.1"
volumes:
- .:/app
depends_on:
- redis
- db
web:
build:
context: .
dockerfile: Dockerfile
command: uvicorn app.main:app --reload --host 0.0.0.0
env_file:
- .env
environment:
- TZ=Europe/Madrid
volumes:
- .:/app
ports:
- 8000:8000
depends_on:
- redis
- db
- celery-worker
- celery-beat
status:
build:
context: .
dockerfile: Dockerfile
command: uvicorn app.status:app --reload --host 0.0.0.0
volumes:
- .:/app
ports:
- 8001:8000
depends_on:
- db
redis:
image: redis:7.0.10
db:
image: postgres:15.2
env_file:
- .env
volumes:
- ./postgres_data:/var/lib/postgresql/data