-
Notifications
You must be signed in to change notification settings - Fork 140
/
docker-compose.yml
100 lines (93 loc) · 2.4 KB
/
docker-compose.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
97
98
99
100
services:
base:
image: ${REGISTRY}/inginious/core-base:${VERSION}
build:
dockerfile: deploy/inginious-base.containerfile
args:
- VERSION=${VERSION}
- REGISTRY=${REGISTRY}
command: /bin/true
db:
image: mongo:6.0.2
networks:
- inginious
backend:
image: ${REGISTRY}/inginious/core-backend:${VERSION}
depends_on:
- base
build:
dockerfile: deploy/backend.containerfile
args:
- VERSION=${VERSION}
- REGISTRY=${REGISTRY}
environment:
AGENT: "tcp://0.0.0.0:2001"
CLIENT: "tcp://0.0.0.0:2000"
networks:
- inginious
agent-docker:
image: ${REGISTRY}/inginious/core-agent_docker:${VERSION}
depends_on:
- backend
deploy:
replicas: 1
build:
dockerfile: deploy/agent-docker.containerfile
args:
- VERSION=${VERSION}
- REGISTRY=${REGISTRY}
environment:
BACKEND: "tcp://backend:2001"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# See https://github.com/UCL-INGI/INGInious/issues/352
- ./tasks/:/inginious/tasks
- ./backups/:/inginious/backups
# See https://github.com/UCL-INGI/INGInious/issues/799
- /tmp/agent_data/:/tmp/agent_data/
networks:
- inginious
agent-mcq:
image: ${REGISTRY}/inginious/core-agent_mcq:${VERSION}
depends_on:
- backend
deploy:
replicas: 1
build:
dockerfile: deploy/agent-mcq.containerfile
args:
- VERSION=${VERSION}
- REGISTRY=${REGISTRY}
environment:
BACKEND: "tcp://backend:2001"
volumes:
# See https://github.com/UCL-INGI/INGInious/issues/352
- ./tasks/:/inginious/tasks
- ./backups/:/inginious/backups
# See https://github.com/UCL-INGI/INGInious/issues/799
- /tmp/agent_data/:/tmp/agent_data/
networks:
- inginious
frontend:
image: ${REGISTRY}/inginious/core-frontend:${VERSION}
build:
dockerfile: deploy/frontend.containerfile
args:
- VERSION=${VERSION}
- REGISTRY=${REGISTRY}
depends_on:
- backend
- agent-docker
- agent-mcq
environment:
- INGINIOUS_WEBAPP_HOST=0.0.0.0
volumes:
- ./configuration.deploy.yaml:/inginious/configuration.yaml
- ./tasks/:/inginious/tasks
- ./backups/:/inginious/backups
ports:
- 9000:8080
networks:
- inginious
networks:
inginious: