This commit is contained in:
erdnaxe 2020-02-03 14:07:50 +01:00
parent 9d16b90d0d
commit aac1b403db
10 changed files with 289 additions and 3 deletions

View file

@ -57,12 +57,13 @@ services:
postgres:
# Don't upgrade PostgreSQL by simply changing the version number
# You need to migrate the Database to the new PostgreSQL version
# When creating for the first time,
# you need to create codimd and cas users and databases.
image: postgres:9.6-alpine
restart: always
environment:
POSTGRES_USER: codimd
POSTGRES_PASSWORD: codimdpass
POSTGRES_DB: codimd
- POSTGRES_USER=postgres
- "POSTGRES_PASSWD=${POSTGRES_PASSWD}"
volumes:
- ./postgres_data:/var/lib/postgresql/data
@ -77,3 +78,15 @@ services:
- ./codimd_uploads_data:/codimd/public/uploads
depends_on:
- postgres
cas:
build: django-cas-server
restart: always
environment:
DJANGO_DB_PASSWORD: "${DJANGO_CAS_DB_PASSWORD}"
DJANGO_SECRET_KEY: "${DJANGO_CAS_SECRET_KEY}"
DJANGO_CAS_LDAP_PASSWORD: "${DJANGO_CAS_LDAP_PASSWORD}"
ports:
- "8085:8000"
depends_on:
- postgres