forked from cyber-dojo/saver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
79 lines (70 loc) · 1.74 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
# This file was generated by ./scripts/create_docker_compose_yml.sh
version: '3.7'
volumes:
one_k:
external: true
services:
client:
build:
args: [ COMMIT_SHA ]
context: ./client
image: cyberdojo/saver-client:${COMMIT_TAG}
container_name: test_saver_client
user: nobody
env_file: [ .env ]
read_only: true
restart: 'no'
tmpfs: /tmp
volumes:
- ./client/source:/app/source:ro
- ./client/test:/app/test:ro
depends_on:
- custom-start-points
- languages-start-points
- exercises-start-points
- server
server:
build:
args: [ COMMIT_SHA ]
context: .
image: cyberdojo/saver:${COMMIT_TAG}
user: saver
container_name: test_saver_server
env_file: [ .env ]
read_only: true
restart: "no"
volumes:
- ./app/source:/app/source:ro
- ./app/test:/app/test:ro
- one_k:/one_k:rw
tmpfs:
- /cyber-dojo:uid=19663,gid=65533
- /tmp:uid=19663,gid=65533
depends_on:
- custom-start-points
- languages-start-points
- exercises-start-points
custom-start-points:
image: cyberdojo/custom-start-points:513f842
container_name: test_saver_custom_start_points
user: nobody
env_file: [ .env ]
read_only: true
restart: "no"
tmpfs: /tmp
languages-start-points:
image: cyberdojo/languages-start-points:f7e6555
container_name: test_saver_languages_start_points
user: nobody
env_file: [ .env ]
read_only: true
restart: "no"
tmpfs: /tmp
exercises-start-points:
image: cyberdojo/exercises-start-points:0d14dad
container_name: test_saver_exercises_start_points
user: nobody
env_file: [ .env ]
read_only: true
restart: "no"
tmpfs: /tmp