-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
63 lines (58 loc) · 1.51 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3.9"
services:
web:
env_file:
- .env.prod
image: 771499844454.dkr.ecr.eu-central-1.amazonaws.com/skillhunter-ec2-web:latest
build:
context: .
dockerfile: Dockerfile.prod
command: gunicorn core.asgi:application -b 0.0.0.0:8000 -w 8 -k uvicorn.workers.UvicornWorker
volumes:
- static_volume:/code/staticfiles
- media_volume:/code/mediafiles
expose:
- 8000
worker:
env_file:
- .env.prod
image: 771499844454.dkr.ecr.eu-central-1.amazonaws.com/skillhunter-ec2-worker:latest
build:
context: .
dockerfile: Dockerfile.prod
command: celery -A core worker --without-heartbeat --without-gossip --without-mingle -l INFO
volumes:
- static_volume:/code/staticfiles
- media_volume:/code/mediafiles
depends_on:
- web
beat:
env_file:
- .env.prod
image: 771499844454.dkr.ecr.eu-central-1.amazonaws.com/skillhunter-ec2-beat:latest
build:
context: .
dockerfile: Dockerfile.prod
command: celery -A core beat -l INFO
volumes:
- static_volume:/code/staticfiles
- media_volume:/code/mediafiles
depends_on:
- web
nginx:
build:
context: ./nginx
dockerfile: Dockerfile.prod
restart: on-failure
volumes:
- ./nginx/certs:/etc/nginx/certs
- static_volume:/code/staticfiles
- media_volume:/code/mediafiles
ports:
- "80:80"
- "443:443"
depends_on:
- web
volumes:
static_volume: null
media_volume: null