forked from Cloud-CV/EvalAI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-production.yml
85 lines (79 loc) · 2.35 KB
/
docker-compose-production.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
version: "3"
services:
db:
image: postgres:10.4
ports:
- "5432:5432"
django:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.eu-central-1.amazonaws.com/evalai-production-backend:${COMMIT_ID}
env_file:
- docker/prod/docker_production.env
build:
context: ./
dockerfile: docker/prod/django/Dockerfile
ports:
- "8000:8000"
depends_on:
- db
logging:
driver: awslogs
options:
awslogs-region: ${AWS_DEFAULT_REGION}
awslogs-group: django_production
awslogs-create-group: "true"
celery:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.eu-central-1.amazonaws.com/evalai-production-celery:${COMMIT_ID}
env_file:
- docker/prod/docker_production.env
build:
context: ./
dockerfile: docker/prod/celery/Dockerfile
depends_on:
- django
logging:
driver: awslogs
options:
awslogs-region: ${AWS_DEFAULT_REGION}
awslogs-group: celery_production
awslogs-create-group: "true"
worker:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.eu-central-1.amazonaws.com/evalai-production-worker:${COMMIT_ID}
build:
context: ./
dockerfile: docker/prod/worker/Dockerfile
env_file:
- docker/prod/docker_production.env
nodejs:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.eu-central-1.amazonaws.com/evalai-production-frontend:${COMMIT_ID}
build:
context: ./
dockerfile: docker/prod/nodejs/Dockerfile
args:
NODE_ENV: production
ports:
- "80:80"
- "443:443"
volumes:
- /code/node_modules
- /code/bower_components
logging:
driver: awslogs
options:
awslogs-region: ${AWS_DEFAULT_REGION}
awslogs-group: nodejs_production
awslogs-create-group: "true"
remote-worker:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.eu-central-1.amazonaws.com/evalai-production-remote-worker:${COMMIT_ID}
build:
context: ./
dockerfile: docker/prod/worker/Dockerfile
command: ["python", "-m", "scripts.workers.remote_submission_worker"]
env_file:
- docker/prod/docker_remote_worker.env
code-upload-worker:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.eu-central-1.amazonaws.com/evalai-production-code-upload-worker:${COMMIT_ID}
env_file:
- docker/prod/docker_code_upload_worker.env
build:
context: ./
dockerfile: docker/prod/code-upload-worker/Dockerfile