-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
99 lines (88 loc) · 2.55 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
networks:
cyber-dojo:
driver: bridge
name: cyber-dojo
services:
web:
image: ${CYBER_DOJO_WEB_IMAGE}:${CYBER_DOJO_WEB_TAG}
ports: [ "${CYBER_DOJO_WEB_PORT}:${CYBER_DOJO_WEB_PORT}" ]
build:
context: .
args: [ COMMIT_SHA ]
user: nobody
container_name: test_web
env_file: [ web.env ]
#tmpfs: /tmp # Interferes with test-coverage extraction
restart: no
# - - - - - - - - - - - - - - - -
creator:
image: ${CYBER_DOJO_CREATOR_IMAGE}:${CYBER_DOJO_CREATOR_TAG}
user: nobody
container_name: test_web_creator
env_file: [ .env ]
read_only: true
tmpfs: /tmp
restart: no
# - - - - - - - - - - - - - - - -
custom-start-points:
image: ${CYBER_DOJO_CUSTOM_START_POINTS_IMAGE}:${CYBER_DOJO_CUSTOM_START_POINTS_TAG}
user: nobody
container_name: test_web_custom_start_points
env_file: [ .env ]
read_only: true
tmpfs: /tmp
restart: no
exercises-start-points:
image: ${CYBER_DOJO_EXERCISES_START_POINTS_IMAGE}:${CYBER_DOJO_EXERCISES_START_POINTS_TAG}
user: nobody
container_name: test_web_exercises_start_points
env_file: [ .env ]
read_only: true
tmpfs: /tmp
restart: no
languages-start-points:
image: ${CYBER_DOJO_LANGUAGES_START_POINTS_IMAGE}:${CYBER_DOJO_LANGUAGES_START_POINTS_TAG}
user: nobody
container_name: test_web_languages_start_points
env_file: [ .env ]
read_only: true
tmpfs: /tmp
restart: no
# - - - - - - - - - - - - - - - -
runner:
image: ${CYBER_DOJO_RUNNER_IMAGE}:${CYBER_DOJO_RUNNER_TAG}
user: root
container_name: test_web_runner
env_file: [ .env ]
read_only: true
tmpfs: /tmp
restart: no
volumes: [ "/var/run/docker.sock:/var/run/docker.sock" ]
# - - - - - - - - - - - - - - - -
saver:
image: ${CYBER_DOJO_SAVER_IMAGE}:${CYBER_DOJO_SAVER_TAG}
ports: [ "${CYBER_DOJO_SAVER_PORT}:${CYBER_DOJO_SAVER_PORT}" ]
user: root
container_name: test_web_saver
env_file: [ .env ]
read_only: true
restart: no
tmpfs: [ "/cyber-dojo:uid=19663,gid=65533", "/tmp:uid=19663,gid=65533" ]
# - - - - - - - - - - - - - - - -
differ:
image: ${CYBER_DOJO_DIFFER_IMAGE}:${CYBER_DOJO_DIFFER_TAG}
user: nobody
container_name: test_web_differ
env_file: [ .env ]
read_only: true
tmpfs: /tmp
restart: no
# - - - - - - - - - - - - - - - -
dashboard:
image: ${CYBER_DOJO_DASHBOARD_IMAGE}:${CYBER_DOJO_DASHBOARD_TAG}
user: nobody
container_name: test_web_dashboard
env_file: [ .env ]
read_only: true
restart: no
tmpfs: /tmp