forked from Cloud-CV/EvalAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-production.yml
97 lines (90 loc) · 2.71 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
86
87
88
89
90
91
92
93
94
95
96
version: "3"
services:
django:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-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"
logging:
driver: awslogs
options:
awslogs-region: ${AWS_DEFAULT_REGION}
awslogs-group: django_production
awslogs-create-group: "true"
celery:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-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.us-east-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.us-east-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"
nodejs_v2:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com/evalai-production-frontend-v2:${COMMIT_ID}
build:
context: ./
dockerfile: docker/prod/nodejs_v2/Dockerfile
args:
NODE_ENV: production
ports:
- "9999:80"
volumes:
- /code/node_modules
logging:
driver: awslogs
options:
awslogs-region: us-east-1
awslogs-group: nodejs_production_v2
awslogs-create-group: "true"
remote-worker:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-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.us-east-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