CodiMD in global compose

This commit is contained in:
erdnaxe 2020-02-03 13:12:31 +01:00
parent 47b7980502
commit 54bc599d3c
3 changed files with 43 additions and 0 deletions

View file

@ -53,3 +53,27 @@ services:
restart: always
environment:
- "DISCORD_WEBHOOK=${PROMETHEUS_DISCORD_WEBHOOK}"
postgres:
# 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
restart: always
environment:
POSTGRES_USER: codimd
POSTGRES_PASSWORD: codimdpass
POSTGRES_DB: codimd
volumes:
- ./postgres_data:/var/lib/postgresql/data
codimd:
build: codimd
restart: always
environment:
CMD_LDAP_BINDCREDENTIALS: "${CODIMD_LDAP_BINDCREDENTIALS}"
ports:
- "8081:3000"
volumes:
- ./codimd_uploads_data:/codimd/public/uploads
depends_on:
- postgres