docker-ovh/codimd/docker-compose.yml

33 lines
900 B
YAML
Raw Normal View History

2019-07-22 11:42:17 +02:00
# From https://github.com/codimd/container/
version: '3'
services:
database:
# Don't upgrade PostgreSQL by simply changing the version number
# You need to migrate the Database to the new PostgreSQL version
image: postgres:9.6-alpine
environment:
- POSTGRES_USER=hackmd
- POSTGRES_PASSWORD=hackmdpass
- POSTGRES_DB=hackmd
volumes:
- ./data_db:/var/lib/postgresql/data
restart: always
app:
build:
context: .
args:
- "VERSION=1.4.0"
- "CODIMD_REPOSITORY=https://github.com/codimd/server.git"
environment:
# DB_URL is formatted like: <databasetype>://<username>:<password>@<hostname>/<database>
- CMD_DB_URL=postgres://hackmd:hackmdpass@database:5432/hackmd
ports:
- "8081:3000"
volumes:
- ./data_uploads:/codimd/public/uploads
restart: always
depends_on:
- database