You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
# 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: codimd
|
|
POSTGRES_PASSWORD: codimdpass
|
|
POSTGRES_DB: codimd
|
|
volumes:
|
|
- ./data_db:/var/lib/postgresql/data
|
|
restart: always
|
|
|
|
app:
|
|
image: quay.io/codimd/server:1.4.0
|
|
environment:
|
|
DEBUG: "false"
|
|
CMD_DB_URL: "postgres://codimd:codimdpass@database:5432/codimd"
|
|
CMD_URL_ADDPORT: "false"
|
|
CMD_EMAIL: "false"
|
|
CMD_DOMAIN: "${DOMAIN}"
|
|
CMD_PROTOCOL_USESSL: "true"
|
|
CMD_USECDN: "false"
|
|
CMD_ALLOW_FREEURL: "true"
|
|
CMD_IMAGE_UPLOAD_TYPE: "filesystem"
|
|
CMD_LDAP_URL: "${LDAP_URL}"
|
|
CMD_LDAP_BINDDN: "${LDAP_BINDDN}"
|
|
CMD_LDAP_BINDCREDENTIALS: "${LDAP_BINDCREDENTIALS}"
|
|
CMD_LDAP_SEARCHBASE: "${LDAP_SEARCHBASE}"
|
|
CMD_LDAP_SEARCHFILTER: "(uid={{username}})"
|
|
CMD_LDAP_SEARCHATTRIBUTES: "uid, givenName, mail"
|
|
CMD_LDAP_USERIDFIELD: "uid"
|
|
CMD_LDAP_USERNAMEFIELD: "uid"
|
|
CMD_LDAP_PROVIDERNAME: "${LDAP_PROVIDERNAME}"
|
|
ports:
|
|
- "8081:3000"
|
|
volumes:
|
|
- ./data_uploads:/codimd/public/uploads
|
|
restart: always
|
|
depends_on:
|
|
- database
|
|
|