-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.52 KB
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
services:
client:
build:
context: source/client
args:
- COMMIT_SHA
image: ${CYBER_DOJO_DIFFER_CLIENT_IMAGE}:${CYBER_DOJO_DIFFER_TAG}
container_name: ${CYBER_DOJO_DIFFER_CLIENT_CONTAINER_NAME}
user: ${CYBER_DOJO_DIFFER_CLIENT_USER}
depends_on:
- server
env_file: [ .env ]
ports: [ "${CYBER_DOJO_DIFFER_CLIENT_PORT}:${CYBER_DOJO_DIFFER_CLIENT_PORT}" ]
read_only: true
restart: no
volumes:
- ./source/client:/differ/source/:ro
- ./test/client:/differ/test/:ro
- type: tmpfs
target: /tmp
tmpfs:
mode: 01777
size: 10485760 # 10MB
server:
build:
context: .
args:
- COMMIT_SHA
image: ${CYBER_DOJO_DIFFER_IMAGE}:${CYBER_DOJO_DIFFER_TAG}
container_name: ${CYBER_DOJO_DIFFER_SERVER_CONTAINER_NAME}
user: ${CYBER_DOJO_DIFFER_SERVER_USER}
depends_on:
- saver
env_file: [ .env ]
ports: [ "${CYBER_DOJO_DIFFER_PORT}:${CYBER_DOJO_DIFFER_PORT}" ]
read_only: true
restart: no
volumes:
- ./source/server:/differ/source/:ro
- ./test/server:/differ/test/:ro
- type: tmpfs
target: /tmp
tmpfs:
mode: 01777
size: 10485760 # 10MB
saver:
image: ${CYBER_DOJO_SAVER_IMAGE}:${CYBER_DOJO_SAVER_TAG}
user: saver
ports: [ "${CYBER_DOJO_SAVER_PORT}:${CYBER_DOJO_SAVER_PORT}" ]
env_file: [ .env ]
read_only: true
restart: no
tmpfs:
- /cyber-dojo:uid=19663,gid=65533
- /tmp:uid=19663,gid=65533