-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.34 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
version: "2"
services:
ctfd:
build:
context: .
ports:
- "8000:8000"
volumes:
- ./ctfd-logs:/var/log/CTFd
- ./ctfd-uploads:/var/uploads
environment:
GIT_PLUGINS_CTFd-Plugin-unique-token: "https://github.com/puckk/CTFd-Plugin-unique-token.git,CTFd-Plugin-unique-token"
GIT_THEMES_pixo: "https://github.com/hmrserver/CTFd-theme-pixo.git,pixo"
GIT_THEMES_odin: "https://github.com/0xdevsachin/CTFD-odin-theme.git,odin"
DATABASE_URL: mysql+pymysql://root:ctfd@db/ctfd
LOG_FOLDER: /var/log/CTFd
REDIS_URL: redis://cache:6379
SECRET_KEY: your_secret_key
UPLOAD_FOLDER: /var/uploads
REVERSE_PROXY: true
WORKERS: "4"
links:
- db:db
labels:
application: ctfd
io.rancher.container.pull_image: always
cache:
image: redis:4
volumes:
- ctfd-redis:/data
db:
image: mariadb:10.4.12
environment:
MYSQL_PASSWORD: ctfd
MYSQL_ROOT_PASSWORD: ctfd
MYSQL_USER: ctfd
volumes:
- ./ctfd-mysql:/var/lib/mysql
command:
- mysqld
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --wait_timeout=28800
- --log-warnings=0
volumes:
ctfd-uploads:
driver: local
ctfd-logs:
driver: local
ctfd-mysql:
driver: local
ctfd-redis:
driver: local