forked from TFNS/CTFNote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (54 loc) · 990 Bytes
/
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
version: "3.7"
services:
api:
build:
context: "./api"
networks:
- ctfnote
environment:
MD_CREATE_URL: "http://front/pad/new"
MD_SHOW_URL: "/"
depends_on:
- db
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: ctfnote
POSTGRES_USER: ctfnote
volumes:
- ctfnote:/data
networks:
- ctfnote
front:
networks:
- ctfnote
build:
context: "./front"
args:
API_HOST: api
PAD_HOST: codimd
depends_on:
- api
- codimd
ports:
- 80:80
codimd:
image: quay.io/codimd/server:1.6.0
environment:
- CMD_DB_URL=postgres://ctfnote:ctfnote@db:5432/ctfnote
- CMD_URL_PATH=pad
depends_on:
- db
restart: always
volumes:
- pad-uploads:/home/hackmd/app/public/uploads
networks:
- ctfnote
volumes:
ctfnote:
name: ctfnote
pad-uploads:
name: pad-uploads
networks:
ctfnote: