2019-08-17 18:37:34 +00:00
|
|
|
version: "3"
|
2019-07-30 10:09:17 +00:00
|
|
|
services:
|
|
|
|
database:
|
2020-01-15 10:25:01 +00:00
|
|
|
image: postgres:11.6-alpine
|
2019-07-30 10:09:17 +00:00
|
|
|
environment:
|
2019-08-17 18:37:34 +00:00
|
|
|
- POSTGRES_USER=codimd
|
|
|
|
- POSTGRES_PASSWORD=change_password
|
|
|
|
- POSTGRES_DB=codimd
|
|
|
|
volumes:
|
|
|
|
- "database-data:/var/lib/postgresql/data"
|
|
|
|
restart: always
|
2019-07-30 10:09:17 +00:00
|
|
|
codimd:
|
2019-11-28 05:44:02 +00:00
|
|
|
# you can use image or custom build below
|
|
|
|
# image: nabo.codimd.dev/hackmdio/hackmd:1.4.0
|
2019-07-30 10:09:17 +00:00
|
|
|
build:
|
2019-08-17 18:37:34 +00:00
|
|
|
context: ..
|
2019-07-30 10:09:17 +00:00
|
|
|
dockerfile: ./deployments/Dockerfile
|
|
|
|
environment:
|
2019-08-17 18:37:34 +00:00
|
|
|
- CMD_DB_URL=postgres://codimd:change_password@database/codimd
|
|
|
|
- CMD_USECDN=false
|
|
|
|
depends_on:
|
|
|
|
- database
|
2019-07-30 10:09:17 +00:00
|
|
|
ports:
|
2019-08-17 18:37:34 +00:00
|
|
|
- "3000:3000"
|
|
|
|
volumes:
|
|
|
|
- upload-data:/home/hackmd/app/public/uploads
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
database-data: {}
|
|
|
|
upload-data: {}
|