-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
192 lines (173 loc) · 5.18 KB
/
docker-compose.yml
File metadata and controls
192 lines (173 loc) · 5.18 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
services:
reverse-proxy:
image: traefik:v3.1
command:
#- "--log.level=DEBUG"
#- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entryPoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.email=webmaster@sigpwny.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "443:443" # HTTPS port
# - "80:80"
# The Web UI (enabled by --api.insecure=true)
# - "8080:8080"
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
inspect-away:
build: ./chals/web/inspect-away/challenge
restart: always
ports:
- "1337"
labels:
- "traefik.enable=true" # enable Traefik
- "traefik.http.routers.inspect-away.rule=Host(`inspect-away.chal.fallctf.com`)" # inspect-away.chal.fallctf.com
- "traefik.http.services.inspect-away.loadbalancer.server.port=1337" # connect to port 1337 of this service
- "traefik.http.routers.inspect-away.entrypoints=websecure"
- "traefik.http.routers.inspect-away.tls.certresolver=myresolver"
read_only: true
mongodb: # don't want data to persist so no volume
image: mongodb/mongodb-community-server:latest
container_name: mongodb
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=sigpwny
- MONGO_INITDB_ROOT_PASSWORD=0886f11c88522dce
restart: always
mongolian-db:
build: ./chals/web/mongolian-db/challenge
environment:
- MONGODB_PASSWORD=0886f11c88522dce
- FLAG=fallctf{i_thought_no_sql_meant_no_sql_injection}
- PORT=1337
restart: always
ports:
- "1337"
labels:
- "traefik.enable=true" # enable Traefik
- "traefik.http.routers.mongolian-db.rule=Host(`mongolian-db.chal.fallctf.com`)" # mongolian-db.chal.fallctf.com
- "traefik.http.services.mongolian-db.loadbalancer.server.port=1337" # connect to port 1337 of this service
- "traefik.http.routers.mongolian-db.entrypoints=websecure"
- "traefik.http.routers.mongolian-db.tls.certresolver=myresolver"
read_only: true
ftx-feedback:
build: ./chals/web/ftx-feedback
restart: always
ports:
- "1337"
labels:
- "traefik.enable=true" # enable Traefik
- "traefik.http.routers.ftx-feedback.rule=Host(`ftx-feedback.chal.fallctf.com`)" # ftx-feedback.chal.fallctf.com
- "traefik.http.services.ftx-feedback.loadbalancer.server.port=1337" # connect to port 1337 of this service
- "traefik.http.routers.ftx-feedback.entrypoints=websecure"
- "traefik.http.routers.ftx-feedback.tls.certresolver=myresolver"
discord-activity:
build: ./chals/web/discord-suite/challenge
restart: always
ports:
- "1337"
labels:
- "traefik.enable=true" # enable Traefik
- "traefik.http.routers.discord-activity.rule=Host(`discord-activity.chal.fallctf.com`)" # discord-activity.chal.fallctf.com
- "traefik.http.services.discord-activity.loadbalancer.server.port=1337" # connect to port 1337 of this service
- "traefik.http.routers.discord-activity.entrypoints=websecure"
- "traefik.http.routers.discord-activity.tls.certresolver=myresolver"
# Misc 8000
first-rule-of-security:
build: ./chals/misc/pyjail-suite/first-rule-of-security
restart: always
ports:
- "8000:1337"
read_only: true
second-rule-of-security:
build: ./chals/misc/pyjail-suite/second-rule-of-security
restart: always
ports:
- "8001:1337"
read_only: true
third-rule-of-security:
build: ./chals/misc/pyjail-suite/third-rule-of-security
restart: always
ports:
- "8002:1337"
read_only: true
# Crypto 7000
happy-birthday:
build: ./chals/crypto/happy-birthday
restart: always
ports:
- "7000:1337"
read_only: true
# Pwn 6000
pwntools:
build: ./chals/pwn/pwntools
restart: always
ports:
- "6000:1337"
read_only: true
magic101:
build: ./chals/pwn/magic101
restart: always
ports:
- "6001:1337"
read_only: true
magic102:
build: ./chals/pwn/magic102
restart: always
ports:
- "6002:1337"
read_only: true
magic103:
build: ./chals/pwn/magic103
restart: always
ports:
- "6003:1337"
read_only: true
the-pledge:
build: ./chals/pwn/the-pledge
restart: always
ports:
- "6004:1337"
read_only: true
the-turn:
build: ./chals/pwn/the-turn
restart: always
ports:
- "6005:1337"
read_only: true
the-prestige:
build: ./chals/pwn/the-prestige
restart: always
ports:
- "6006:1337"
read_only: true
pyrop-0:
build:
context: ./chals/pwn/pyrop
args:
CHAL_NUMBER: 0
restart: always
ports:
- "6010:1337"
read_only: true
pyrop-1:
build:
context: ./chals/pwn/pyrop
args:
CHAL_NUMBER: 1
restart: always
ports:
- "6011:1337"
read_only: true
# Rev 5000
megamind:
build: ./chals/rev/megamind
restart: always
ports:
- "5000:1337"
read_only: true