-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
115 lines (105 loc) · 2.59 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
version: '2'
services:
ctfd:
build: .
user: root
restart: always
environment:
- UPLOAD_FOLDER=/var/uploads
- DATABASE_URL=mysql+pymysql://root:ctfd@db/ctfd
- REDIS_URL=redis://cache:6379
- WORKERS=1
- LOG_FOLDER=/var/log/CTFd
- ACCESS_LOG=-
- ERROR_LOG=-
- VIRTUAL_HOST=ctf.site.com
- LETSENCRYPT_HOST=ctf.site.com
volumes:
- .data/CTFd/logs:/var/log/CTFd
- .data/CTFd/uploads:/var/uploads
- .:/opt/CTFd:ro
depends_on:
- db
networks:
default:
internal:
db:
image: mariadb:10.4
restart: always
environment:
- MYSQL_ROOT_PASSWORD=ctfd
- MYSQL_USER=ctfd
- MYSQL_PASSWORD=ctfd
- MYSQL_DATABASE=ctfd
volumes:
- .data/mysql:/var/lib/mysql
networks:
internal:
# This command is required to set important mariadb defaults
command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --wait_timeout=28800, --log-warnings=0]
cache:
image: redis:4
restart: always
volumes:
- .data/redis:/data
networks:
internal:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
default:
internal:
nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes_from:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
whoami:
image: jwilder/whoami
environment:
- VIRTUAL_HOST=whoami.ctf.site.com
- LETSENCRYPT_HOST=whoami.ctf.site.com
mr-robot:
image: nginx:alpine
volumes:
- /root/hacknflag/web/mr-robot/server:/usr/share/nginx/html:ro
environment:
- VIRTUAL_HOST=mr-robot.ctf.site.com
- LETSENCRYPT_HOST=mr-robot.ctf.site.com
script-kiddies:
image: nginx:alpine
volumes:
- /root/hacknflag/web/script-kiddies/server:/usr/share/nginx/html:ro
environment:
- VIRTUAL_HOST=script-kiddies.ctf.site.com
- LETSENCRYPT_HOST=script-kiddies.ctf.site.com
crack-me:
build: /root/hacknflag/miscellaneous/crack-me/server
ports:
- "8080:8080"
fsa:
build: /root/hacknflag/binary/FSA/server
ports:
- "8081:8080"
networks:
default:
internal:
internal: true
volumes:
conf:
vhost:
html:
dhparam:
certs: