-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 1000 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 1000 Bytes
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
version: "3"
services:
database:
image: postgres:11.6-alpine
environment:
- POSTGRES_USER=codimd
- POSTGRES_PASSWORD=change_password
- POSTGRES_DB=codimd
volumes:
- "database-data:/var/lib/postgresql/data"
restart: always
codimd:
# you can use image or custom build below,
image: nabo.codimd.dev/hackmdio/hackmd:2.5.3
# Using the following command to trigger the build
# docker-compose -f deployments/docker-compose.yml up --build
# build:
# context: ..
# dockerfile: ./deployments/Dockerfile
# args:
# RUNTIME: hackmdio/runtime:16.20.2-35fe7e39
# BUILDPACK: hackmdio/buildpack:16.20.2-35fe7e39
environment:
- CMD_DB_URL=postgres://codimd:change_password@database/codimd
- CMD_USECDN=false
depends_on:
- database
ports:
- "3000:3000"
volumes:
- upload-data:/home/hackmd/app/public/uploads
restart: always
volumes:
database-data: {}
upload-data: {}