-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (53 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
57 lines (53 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
services:
ctfd:
image: ctfd/ctfd
user: root # TODO: fix permission issues
restart: unless-stopped
init: true
entrypoint: /entry.sh
environment:
DISCORD_WEBHOOK_URL: "" # TODO: replace with your webhook URL
DISCORD_WEBHOOK_LIMIT: "50" # announce first N solves
DISCORD_WEBHOOK_MESSAGE: "{user} solved {challenge}! ({solves} solves total)"
volumes:
- ./ctfd/entry.sh:/entry.sh
- mcc-ctfd:/opt/storage
- ./ctfd/plugins/ctfd-discord-webhook-plugin:/opt/CTFd/CTFd/plugins/ctfd-discord-webhook-plugin:ro
backend:
build: .
volumes:
- .:/app
- /var/run/docker.sock:/var/run/docker.sock
ports:
# CTF problem ports
- "9500:9500" # syoch.vulnerable_rsa3
- "9501:9501" # syoch.vulnerable_rsa2
- "9502:9502" # syoch.vulnerable_rsa1
- "9503:9503" # syoch.termination
- "9504:9504" # syoch.hello_ctf
- "9505:9505" # syoch.c0rrupt_stack
- "9506:9506" # syoch.basic_exploitation
init: true
command: /app/run_server.sh
restart: unless-stopped
nginx:
image: nginx:stable
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./letsencrypt:/etc/letsencrypt
- ./letsencrypt-www:/var/www/certbot
- ./nginx/logs:/var/log/nginx
depends_on:
- ctfd
- backend
certbot:
image: certbot/certbot
volumes:
- ./letsencrypt:/etc/letsencrypt
- ./letsencrypt-www:/var/www/certbot
volumes:
mcc-ctfd: