-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 866 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 866 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
services:
api:
image: pickup
restart: on-failure:3
# command: ["gunicorn", "-c", "gunicorn.conf.py", "manage:app"]
env_file: .env.prod
environment:
APP_ENV: production
RUN_MIGRATIONS: "1"
volumes:
- /data/logs/pickup:/data/logs/pickup
- /data/resource/pickup:/data/resource/pickup
- /data/db:/data/db
ports:
- "9000:5555"
celery_worker:
image: pickup
restart: on-failure:3
env_file: .env.prod
command: celery -A make_celery.celery_app worker -c 2 -l INFO -f /data/logs/worker.pickup.log
depends_on:
- api
celery_beat:
image: pickup
restart: on-failure:3
env_file: .env.prod
command: celery -A make_celery.celery_app beat -l INFO -f /data/logs/beat.pickup.log
volumes:
- /data/resource/pickup:/data/resource/pickup
depends_on:
- api