mirror of
https://github.com/status-im/codimd.git
synced 2025-01-13 05:34:36 +00:00
f1594c56e2
1. upgrade node.js version from 8.16.0 to 8.16.2 2. upgrade pcheck to support connection string from environment 3. upgrade pcheck to fix connection string contains underscore might not resolve correctly Signed-off-by: BoHong Li <raccoon@hackmd.io>
31 lines
743 B
YAML
31 lines
743 B
YAML
version: "3"
|
|
services:
|
|
database:
|
|
image: postgres:11.5
|
|
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:1.4.0
|
|
build:
|
|
context: ..
|
|
dockerfile: ./deployments/Dockerfile
|
|
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: {}
|