-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
43 lines (38 loc) · 996 Bytes
/
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
volumes:
one_k:
external: true
services:
client:
depends_on: [ server ]
build:
context: source/client
args:
- COMMIT_SHA
- BASE_IMAGE=${CYBER_DOJO_SAVER_BASE_IMAGE}
image: ${CYBER_DOJO_SAVER_CLIENT_IMAGE}:${CYBER_DOJO_SAVER_TAG}
user: ${CYBER_DOJO_SAVER_CLIENT_USER}
container_name: ${CYBER_DOJO_SAVER_CLIENT_CONTAINER_NAME}
env_file: [ .env ]
read_only: true
restart: no
tmpfs: /tmp
volumes:
- ./test/client:/saver/test:ro
server:
build:
context: .
args:
- COMMIT_SHA
- BASE_IMAGE=${CYBER_DOJO_SAVER_BASE_IMAGE}
image: ${CYBER_DOJO_SAVER_IMAGE}:${CYBER_DOJO_SAVER_TAG}
user: ${CYBER_DOJO_SAVER_SERVER_USER}
container_name: ${CYBER_DOJO_SAVER_SERVER_CONTAINER_NAME}
env_file: [ .env ]
read_only: true
restart: no
volumes:
- ./test/server:/saver/test:ro
- one_k:/one_k:rw
tmpfs:
- /cyber-dojo:uid=19663,gid=65533
- /tmp