forked from TFNS/CTFNote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (81 loc) · 1.85 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
version: "3.7"
services:
api:
build:
context: "./api"
networks:
- ctfnote
environment:
PAD_CREATE_URL: http://hedgedoc:3000/new
PAD_SHOW_URL: /
# openssl rand -hex 10 (doesn't really have to be unique because login is disabled for outsiders anway)
PAD_OWNER_PASS: 14022f541a9aa7631087
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
depends_on:
- db
volumes:
- ctfnote-uploads:/app/uploads
db:
build:
context: "./db"
restart: always
environment:
POSTGRES_PASSWORD: ctfnote
POSTGRES_USER: ctfnote
POSTGRES_MULTIPLE_DATABASES: hedgedoc
volumes:
- ctfnote-db:/var/lib/postgresql/data
networks:
- ctfnote
front:
networks:
- ctfnote
build:
context: "./front"
depends_on:
- hedgedoc
- api
- ical-relay
ports:
- 8088:80
hedgedoc:
image: quay.io/hedgedoc/hedgedoc:1.9.2-alpine
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_ALLOW_ANONYMOUS=false
- CMD_ALLOW_ANONYMOUS_EDITS=false
depends_on:
- db
restart: always
volumes:
- pad-uploads:/hedgedoc/public/uploads
networks:
- ctfnote
ical-relay:
build: ./ical-relay
restart: unless-stopped
volumes:
- ./ical-relay/config:/config
networks:
- ctfnote
volumes:
ctfnote-db:
name: ctfnote
ctfnote-uploads:
name: ctfnote-uploads
pad-uploads:
name: pad-uploads
networks:
ctfnote: