-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 951 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
services:
postgrest:
image: postgrest/postgrest:latest
restart: always
environment:
PGRST_DB_URI: postgres://postgres:postgres@db/codimd
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: postgres
ports:
- "3000:3000"
db:
image: postgres:11
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: codimd
ports:
- 127.0.0.1:55444:5432
codimd:
image: hackmdio/hackmd:2.5.4
environment:
CMD_USECDN: 'false'
CMD_DB_URL: postgres://postgres:postgres@db/codimd
CMD_PROTOCOL_USESSL: 'true'
CMD_ALLOW_EMAIL_REGISTER: 'true'
CMD_DEFAULT_PERMISSION: limited
restart: unless-stopped
ports:
- 3001:3000
swagger:
image: swaggerapi/swagger-ui
ports:
- "8080:8080"
expose:
- "8080"
environment:
API_URL: http://localhost:3000/
volumes:
db_data: