forked from Cloud-CV/EvalAI-ngx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
52 lines (47 loc) · 1.12 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
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: ngx_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"
angularjs:
container_name: ngx_angularjs
hostname: angularjs
build:
context: ./
dockerfile: docker/dev/angularjs/Dockerfile
environment:
ANGULAR_ENV: development
ports:
- "8888:4200"
- "4200:4200"
volumes:
- .:/code