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:
2019-07-22 12:47:48 +02:00
- POSTGRES_USER=codimd
- POSTGRES_PASSWORD=codimdpass
- POSTGRES_DB=codimd
2019-07-22 11:42:17 +02:00
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>
2019-07-22 12:47:48 +02:00
- CMD_DB_URL=postgres://codimd:codimdpass@database:5432/codimd
2019-07-22 11:42:17 +02:00
ports:
- "8081:3000"
volumes:
- ./data_uploads:/codimd/public/uploads
restart: always
depends_on:
- database