-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (91 loc) · 1.78 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: "5"
services:
fastapi_app:
build: ./backend
volumes:
- .:/backend
environment:
- DOCKER=1
env_file:
- ./backend/.docker.env
command: >
sh -c "gunicorn src.main:create_app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8001 --access-logfile -"
ports:
- "8001:8001"
expose:
- 8001
networks:
- default
depends_on:
- db
- mongodb
celery:
build: ./backend
volumes:
- .:/backend
environment:
- DOCKER=1
env_file:
- ./backend/.docker.env
command: >
sh -c "celery -A src.core.celery:app worker -l info"
networks:
- default
depends_on:
- fastapi_app
- celery_beat
- redis
celery_beat:
build: ./backend
volumes:
- .:/backend
environment:
- DOCKER=1
env_file:
- ./backend/.docker.env
command: >
sh -c "celery -A src.core.celery:app beat -l info"
networks:
- default
depends_on:
- fastapi_app
- redis
redis:
image: redis:latest
ports:
- "6339:6339"
expose:
- 6339
db:
image: postgres:15-alpine
# volumes:
# - postgres_data:/var/lib/postgresql/data/
expose:
- 5432
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=calculation_db
networks:
- default
mongodb:
image: mongodb/mongodb-community-server:6.0-ubi8
frontend:
build: ./frontend
ports:
- "8888:8888"
depends_on:
fastapi_app:
condition: service_started
networks:
- default
nginx:
build: ./nginx
ports:
- "1337:80"
depends_on:
- fastapi_app
networks:
- default
networks:
default: {}