-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathdocker-compose.yml
124 lines (117 loc) · 2.45 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: "3.7"
services:
insecureinc:
image: securecodingdojo/insecure.inc
deploy:
resources:
limits:
cpus: "0.3"
memory: 256M
reservations:
cpus: "0.3"
memory: 256M
build:
context: ./insecureinc
dockerfile: Dockerfile.insecureinc
restart: "always" #change to always if you want the image to auto start
ports:
- "8080:8080"
networks:
- insecure
environment:
- CHALLENGE_MASTER_SALT
trainingportal:
image: securecodingdojo/trainingportal
deploy:
resources:
limits:
cpus: "0.3"
memory: 256M
reservations:
cpus: "0.3"
memory: 256M
restart: "always" #change to always if you want the image to auto start
build:
context: ./trainingportal
dockerfile: Dockerfile.trainingportal
ports:
- "8081:8081"
volumes:
- "${DATA_DIR}:/dojofiles:consistent"
networks:
- portal
environment:
- CHALLENGE_MASTER_SALT
- ENC_KEY
- ENC_KEY_IV
- DATA_DIR=/dojofiles
host1:
image: securecodingdojo/hackerden-host1
deploy:
resources:
limits:
cpus: "0.1"
memory: 128M
reservations:
cpus: "0.1"
memory: 128M
build:
context: ./hackerden
dockerfile: Dockerfile.host1
restart: "always"
expose:
- "22"
networks:
hden:
aliases:
- host1
host2:
image: securecodingdojo/hackerden-host2
deploy:
resources:
limits:
cpus: "0.1"
memory: 128M
reservations:
cpus: "0.1"
memory: 128M
build:
context: ./hackerden
dockerfile: Dockerfile.host2
restart: "always"
expose:
- "8080"
networks:
hden:
aliases:
- host2
front:
image: securecodingdojo/hackerden-front
deploy:
resources:
limits:
cpus: "0.2"
memory: 128M
reservations:
cpus: "0.2"
memory: 128M
build:
context: ./hackerden
dockerfile: Dockerfile.front
restart: "always"
ports:
- "3000:3000"
environment:
- CHALLENGE_MASTER_SALT
- COINMINER_SSH_HOST=host1
- COMMAND_PROC_URL=http://host2:8080/commandproc
networks:
hden:
aliases:
- front
volumes:
dojofiles:
networks:
portal:
insecure:
hden: