-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.79 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
services:
starter_client:
build:
context: test_client
user: nobody
image: cyberdojo/test-starter-client
init: true
container_name: test-starter-client
read_only: true
depends_on:
- custom
- exercises
- languages
restart: 'no'
ports: [ "4528:4528" ]
volumes:
- type: tmpfs
target: /tmp
tmpfs:
mode: 01777
size: 52428800 # 50MB
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
custom:
user: nobody
image: cyberdojo/test-custom
build:
context: app
container_name: test-custom-server
read_only: true
restart: 'no'
ports: [ "${CYBER_DOJO_CUSTOM_START_POINTS_PORT}:${CYBER_DOJO_CUSTOM_START_POINTS_PORT}" ]
volumes:
- "./test_custom_server:/app/test:ro"
- type: tmpfs
target: /tmp
tmpfs:
mode: 01777
size: 52428800 # 50MB
exercises:
user: nobody
image: cyberdojo/test-exercises
build:
context: app
container_name: test-exercises-server
read_only: true
restart: 'no'
ports: [ "${CYBER_DOJO_EXERCISES_START_POINTS_PORT}:${CYBER_DOJO_EXERCISES_START_POINTS_PORT}" ]
volumes:
- "./test_exercises_server:/app/test:ro"
- type: tmpfs
target: /tmp
tmpfs:
mode: 01777
size: 52428800 # 50MB
languages:
user: nobody
image: cyberdojo/test-languages
build:
context: app
container_name: test-languages-server
read_only: true
restart: 'no'
ports: [ "${CYBER_DOJO_LANGUAGES_START_POINTS_PORT}:${CYBER_DOJO_LANGUAGES_START_POINTS_PORT}" ]
volumes:
- "./test_languages_server:/app/test:ro"
- type: tmpfs
target: /tmp
tmpfs:
mode: 01777
size: 52428800 # 50MB