forked from TFNS/CTFNote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (63 loc) · 1.34 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
version: "3.7"
services:
api:
build:
context: "./api"
networks:
- ctfnote
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
depends_on:
- db
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
ports:
- 80:80
hedgedoc:
image: quay.io/hedgedoc/hedgedoc:1.9.0-alpine
environment:
- CMD_DB_URL=postgres://ctfnote:ctfnote@db:5432/hedgedoc
- CMD_URL_PATH=pad
- CMD_DOMAIN
- CMD_CSP_ENABLE=${CMD_CSP_ENABLE:-false}
- CMD_IMAGE_UPLOAD_TYPE=${CMD_IMAGE_UPLOAD_TYPE:-imgur}
depends_on:
- db
restart: always
volumes:
- pad-uploads:/hedgedoc/public/uploads
networks:
- ctfnote
volumes:
ctfnote-db:
name: ctfnote
pad-uploads:
name: pad-uploads
networks:
ctfnote: