forked from CTFd/CTFd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
44 lines (44 loc) · 1.02 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
version: '2'
services:
ctfd:
build: .
restart: always
ports:
- "8000:8000"
environment:
- LOG_FOLDER=/var/opt/CTFd/log
- UPLOAD_FOLDER=/var/opt/CTFd/upload
- DATABASE_URL=mysql+pymysql://root:ctfd@db/ctfd
- REDIS_URL=redis://cache:6379
- WORKERS=4
volumes:
- /var/opt/CTFd/log:/var/opt/CTFd/log
- /var/opt/CTFd/upload:/var/opt/CTFd/upload
- .:/opt/CTFd:ro
depends_on:
- db
networks:
default:
internal:
db:
image: mariadb:10.2
restart: always
environment:
- MYSQL_ROOT_PASSWORD=ctfd
- MYSQL_USER=ctfd
- MYSQL_PASSWORD=ctfd
volumes:
- /var/opt/CTFd/mysql:/var/lib/mysql
networks:
internal:
command: [ mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --wait_timeout=28800, --log-warnings=0 ]
cache:
image: redis:4
restart: always
volumes:
- /var/opt/CTFd/redis:/data/CTFd
networks:
internal:
networks:
default:
internal: