forked from CTFd/CTFd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
services:
chad:
image: $DOCKER_REGISTRY/chad/server
environment:
- REDIS_URL=redis://cache/1
- CLEANUP_DISABLED=yes
- DOCKER_REGISTRY=$DOCKER_REGISTRY
- GATEWAY_IMAGE=$DOCKER_REGISTRY/chad/gateway
volumes:
- .data/chad_pki:/etc/chad_pki
- /var/run/docker.sock:/run/docker.sock
depends_on:
- cache
networks:
- internal
app:
build: .
image: $DOCKER_REGISTRY/ctfd
ports:
- "8000:8000"
environment:
- DEBUG=yes
- UPLOAD_FOLDER=/var/uploads
- DATABASE_URL=mysql+pymysql://root:ctfd@db/ctfd
- REDIS_URL=redis://cache/0
- ACCESS_LOG=-
- ERROR_LOG=-
- 'MAIL_LABELS={"example.com":"Example","gmail.com":"Google"}'
volumes:
- .data/logs:/var/log/CTFd
- .data/uploads:/var/uploads
- .:/opt/CTFd:ro
depends_on:
- db
- cache
networks:
- default
- internal
db:
image: mariadb:10
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:alpine
volumes:
- .data/redis:/data
networks:
internal:
networks:
default:
internal:
internal: true