-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose.yml
87 lines (87 loc) · 2.49 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3.7"
services:
api:
image: ghcr.io/tfns/ctfnote/api:latest
build:
context: "./api"
networks:
- ctfnote
restart: unless-stopped
environment:
PAD_CREATE_URL: http://hedgedoc:3000/new
PAD_SHOW_URL: /
DB_DATABASE: ctfnote
DB_ADMIN_LOGIN: ctfnote
DB_ADMIN_PASSWORD: ctfnote
DB_USER_LOGIN: user_postgraphile
DB_USER_PASSWORD: secret_password
DB_HOST: db
DB_PORT: 5432
WEB_PORT: 3000
CMD_DOMAIN: ${CMD_DOMAIN:-}
CMD_PROTOCOL_USESSL: ${CMD_PROTOCOL_USESSL:-false}
CMD_DOCUMENT_MAX_LENGTH: ${CMD_DOCUMENT_MAX_LENGTH:-100000}
USE_DISCORD: ${USE_DISCORD:-false}
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN:-bot_token}
DISCORD_SERVER_ID: ${DISCORD_SERVER_ID:-server_id}
DISCORD_VOICE_CHANNELS: ${DISCORD_VOICE_CHANNELS:-3}
DISCORD_REGISTRATION_ENABLED: ${DISCORD_REGISTRATION_ENABLED:-false}
DISCORD_REGISTRATION_CTFNOTE_ROLE: ${DISCORD_REGISTRATION_CTFNOTE_ROLE}
DISCORD_REGISTRATION_ROLE_ID: ${DISCORD_REGISTRATION_ROLE_ID}
TZ: ${TZ:-UTC}
LC_ALL: ${LC_ALL:-en_US.UTF-8}
SESSION_SECRET: ${SESSION_SECRET:-}
depends_on:
- db
volumes:
- ctfnote-uploads:/app/uploads
db:
image: ghcr.io/tfns/ctfnote/db:latest
build:
context: "./db"
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ctfnote
POSTGRES_USER: ctfnote
POSTGRES_MULTIPLE_DATABASES: hedgedoc
volumes:
- ctfnote-db:/var/lib/postgresql/data
networks:
- ctfnote
front:
image: ghcr.io/tfns/ctfnote/front:latest
networks:
- ctfnote
restart: unless-stopped
build:
context: "./front"
depends_on:
- hedgedoc
ports:
- 127.0.0.1:8080:80
hedgedoc:
image: quay.io/hedgedoc/hedgedoc:1.10.0
environment:
- CMD_DB_URL=postgres://ctfnote:ctfnote@db:5432/hedgedoc
- CMD_URL_PATH=pad
- CMD_DOMAIN
- CMD_PROTOCOL_USESSL
- CMD_CSP_ENABLE=${CMD_CSP_ENABLE:-false}
- CMD_IMAGE_UPLOAD_TYPE=${CMD_IMAGE_UPLOAD_TYPE:-imgur}
- CMD_DOCUMENT_MAX_LENGTH=${CMD_DOCUMENT_MAX_LENGTH:-100000}
depends_on:
- db
restart: unless-stopped
volumes:
- pad-uploads:/hedgedoc/public/uploads
networks:
- ctfnote
volumes:
ctfnote-db:
name: ctfnote
ctfnote-uploads:
name: ctfnote-uploads
pad-uploads:
name: pad-uploads
networks:
ctfnote: