2019-08-17 18:37:34 +00:00
|
|
|
version: "3"
|
2019-07-30 10:09:17 +00:00
|
|
|
services:
|
|
|
|
database:
|
2019-08-17 18:37:34 +00:00
|
|
|
image: postgres:11.5
|
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:
|
|
|
|
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: {}
|