forked from Cloud-CV/EvalAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
53 lines (48 loc) · 1.11 KB
/
docker-compose.dev.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
version: "2"
services:
db:
image: postgres
ports:
- "5432:5432"
rabbitmq:
image: rabbitmq
hostname: rabbitmq
ports:
- "5672:5672"
- "15672:15672" # here, we can access rabbitmq management plugin
django:
container_name: django
hostname: django
env_file:
- docker/dev.env
build:
context: ./
dockerfile: docker/dev/django/Dockerfile
ports:
- "8000:8000"
command: ["./docker/wait-for-it.sh", "db:5432", "--", "sh", "/code/docker/dev/django/container-start.sh"]
depends_on:
- "db"
submission-worker:
env_file:
- docker/dev.env
build:
context: ./
dockerfile: docker/dev/rabbitmq/Dockerfile
command: ["./docker/wait-for-it.sh", "django:8000", "--", "python", "scripts/workers/submission_worker.py"]
depends_on:
- "django"
nodejs:
container_name: nodejs
hostname: nodejs
build:
context: ./
dockerfile: docker/dev/nodejs/Dockerfile
volumes:
- .:/code
environment:
NODE_ENV: development
ports:
- "8888:8888"
depends_on:
- django