-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (42 loc) · 1.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
services:
client:
build:
context: source/client
args: [ COMMIT_SHA ]
image: ${CYBER_DOJO_RUNNER_CLIENT_IMAGE}:${CYBER_DOJO_RUNNER_TAG}
user: ${CYBER_DOJO_RUNNER_CLIENT_USER}
container_name: ${CYBER_DOJO_RUNNER_CLIENT_CONTAINER_NAME}
ports: [ "${CYBER_DOJO_RUNNER_CLIENT_PORT}:${CYBER_DOJO_RUNNER_CLIENT_PORT}" ]
depends_on: [ server ]
env_file: [ .env ]
environment: [ CONTEXT=client, SHOW_TEST_IDS ]
read_only: true
restart: no
tmpfs: /tmp
volumes:
- ./test:/runner/test/:ro
server:
build:
context: .
args: [ COMMIT_SHA ]
image: ${CYBER_DOJO_RUNNER_IMAGE}:${CYBER_DOJO_RUNNER_TAG}
user: ${CYBER_DOJO_RUNNER_SERVER_USER}
container_name: ${CYBER_DOJO_RUNNER_SERVER_CONTAINER_NAME}
ports: [ "${CYBER_DOJO_RUNNER_PORT}:${CYBER_DOJO_RUNNER_PORT}" ]
depends_on: [ languages-start-points ]
env_file: [ .env ]
environment: [ CONTEXT=server, SHOW_TEST_IDS ]
read_only: true
restart: no
tmpfs: /tmp
volumes:
- ./test:/runner/test/:ro
- /var/run/docker.sock:/var/run/docker.sock
languages-start-points:
image: ${CYBER_DOJO_LANGUAGES_START_POINTS_IMAGE}:${CYBER_DOJO_LANGUAGES_START_POINTS_TAG}
ports: [ "${CYBER_DOJO_LANGUAGES_START_POINTS_PORT}:${CYBER_DOJO_LANGUAGES_START_POINTS_PORT}" ]
user: nobody
env_file: [ .env ]
read_only: true
restart: no
tmpfs: /tmp