-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.template.yml
61 lines (51 loc) · 1.5 KB
/
docker-compose.template.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
version: '3'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD:
MYSQL_USER:
MYSQL_PASSWORD:
MYSQL_DATABASE:
ports:
- "3306"
ctfpad:
build: .
restart: unless-stopped
depends_on:
- "db"
ports:
# ctfpad port
- "80:4242"
# etherpad proxy port
- "4343:4343"
environment:
# ctfpad port
- CTFPAD_PORT=4242
# set both of the following to 'true' if you
# want to have ctfpad/etherpad use ssl directly
- CTFPAD_USE_HTTPS=false
- CTFPAD_PROXY_USE_HTTPS=false
# default certificates are generated and put to
# /data/{key,cert}.pem; change this if you e.g.
# want to use let's encrypt certificates
- CTFPAD_SSL_KEY_FILE=/data/key.pem
- CTFPAD_SSL_CERT_FILE=/data/cert.pem
# authentication key for new signups
- CTFPAD_AUTHKEY=ctfpad
# etherpad proxy port
- ETHERPAD_PORT=4343
# internal etherpad port; you may not change
# this unless you really need to
- ETHERPAD_INTERNAL_PORT=9001
# it's strongly recommended to use mysql or
# mariadb for etherpad's data storage;
# set credentials here
- MYSQL_HOST=
- MYSQL_USER=
- MYSQL_PASSWORD=
volumes:
- ./ctfpad_data:/data:z