-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
55 lines (51 loc) · 1.14 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
# Dockerfile to develop the theme locally
version: '2'
services:
ctfd:
image: ctfd/ctfd
container_name: ctfd
restart: always
hostname: ctfd
ports:
- 8000:8000
environment:
- UPLOAD_FOLDER=/var/uploads
- DATABASE_URL=mysql+pymysql://ctfd:ctfd@db/ctfd
- WORKERS=1
- LOG_FOLDER=/var/log/CTFd
- ACCESS_LOG=-
- ERROR_LOG=-
- REVERSE_PROXY=true
volumes:
# Mount the theme folder below
- ./ftheme:/opt/CTFd/CTFd/themes/ftheme:ro
depends_on:
- db
networks:
default:
internal:
db:
image: mariadb:latest
container_name: mariadb
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
]
networks:
default:
internal:
internal: true