This repository has been archived by the owner on Jan 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
61 lines (53 loc) · 1.67 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
# This is augmented with dependent services by
# sh/augmented_docker_compose.sh
version: '3.7'
services:
nginx:
image: cyberdojo/nginx_creator_stub
container_name: test_nginx
ports: [ "${CYBER_DOJO_NGINX_PORT}:${CYBER_DOJO_NGINX_PORT}" ]
user: root
build:
context: source/nginx_stub
depends_on:
- client
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
client:
build:
args: [ COMMIT_SHA ]
context: source/client
image: ${CYBER_DOJO_CREATOR_CLIENT_IMAGE}:${CYBER_DOJO_CREATOR_TAG}
container_name: ${CYBER_DOJO_CREATOR_CLIENT_CONTAINER_NAME}
env_file: [ .env ]
ports: [ "${CYBER_DOJO_CREATOR_CLIENT_PORT}:${CYBER_DOJO_CREATOR_CLIENT_PORT}" ]
user: ${CYBER_DOJO_CREATOR_CLIENT_USER}
depends_on:
- custom-start-points # for test data
- exercises-start-points # for test data
- languages-start-points # for test data
- selenium
- creator
read_only: true
restart: "no"
tmpfs: /tmp
volumes: [ "./test:/app/test/:ro" ]
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
creator:
build:
args: [ COMMIT_SHA ]
context: source/server
image: ${CYBER_DOJO_CREATOR_IMAGE}:${CYBER_DOJO_CREATOR_TAG}
container_name: ${CYBER_DOJO_CREATOR_SERVER_CONTAINER_NAME}
env_file: [ .env ]
ports: [ "${CYBER_DOJO_CREATOR_PORT}:${CYBER_DOJO_CREATOR_PORT}" ]
user: ${CYBER_DOJO_CREATOR_SERVER_USER}
depends_on:
- custom-start-points
- exercises-start-points
- languages-start-points
- runner
- saver
read_only: true
restart: "no"
tmpfs: /tmp
volumes: [ "./test:/app/test/:ro" ]