-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
43 lines (40 loc) · 1.11 KB
/
docker-compose.prod.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
services:
api-orgfin:
container_name: "api-orgfin"
image: ypeskov/api-orgfin:1.4.2
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ${APP_ENV_FILE:-./back-fastapi/.env.prod}
ports:
- 8000:8000
volumes:
- ../orgfin/backup:/app/backup
tty: true
command: "gunicorn app.main:app -w 2 -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000"
restart: always
redis-orgfin:
image: redis:alpine
container_name: redis-orgfin
command: redis-server --bind 0.0.0.0
restart: always
celery-orgfin:
container_name: "celery-orgfin"
image: ypeskov/api-orgfin:1.4.2
env_file:
- ${APP_ENV_FILE:-./back-fastapi/.env.prod}
volumes:
- ../orgfin/backup:/app/backup
command: celery -A app.celery worker -l info
depends_on:
- redis-orgfin
restart: always
celery-beat-orgfin:
container_name: celery-beat-orgfin
image: ypeskov/api-orgfin:1.4.2
env_file:
- ${APP_ENV_FILE:-./back-fastapi/.env.prod}
command: celery -A app.celery beat -l info
depends_on:
- redis-orgfin
restart: always