CodiMD in global compose
This commit is contained in:
parent
47b7980502
commit
54bc599d3c
3 changed files with 43 additions and 0 deletions
18
codimd/Dockerfile
Normal file
18
codimd/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM quay.io/codimd/server:1.5.0
|
||||
|
||||
ENV DEBUG=false
|
||||
ENV CMD_DB_URL=postgres://codimd:codimdpass@postgres:5432/codimd
|
||||
ENV CMD_URL_ADDPORT=false
|
||||
ENV CMD_EMAIL=false
|
||||
ENV CMD_DOMAIN=codimd.auro.re
|
||||
ENV CMD_PROTOCOL_USESSL=true
|
||||
ENV CMD_ALLOW_FREEURL=true
|
||||
ENV CMD_IMAGE_UPLOAD_TYPE=filesystem
|
||||
ENV CMD_LDAP_URL=ldap://10.128.0.11
|
||||
ENV CMD_LDAP_BINDDN=cn=codimd,ou=service-users,dc=auro,dc=re
|
||||
ENV CMD_LDAP_SEARCHBASE=cn=Utilisateurs,dc=auro,dc=re
|
||||
ENV CMD_LDAP_SEARCHFILTER=(uid={{username}})
|
||||
ENV CMD_LDAP_SEARCHATTRIBUTES=uid,givenName,mail
|
||||
ENV CMD_LDAP_USERIDFIELD=uid
|
||||
ENV CMD_LDAP_USERNAMEFIELD=uid
|
||||
ENV CMD_LDAP_PROVIDERNAME=Aurore
|
|
@ -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
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
ETHERPAD_POSTGRES_PASSWD=CHANGE ME
|
||||
GRAFANA_LDAP_BIND_PASSWD=CHANGE ME
|
||||
PROMETHEUS_DISCORD_WEBHOOK=CHANGE ME
|
||||
CODIMD_LDAP_BINDCREDENTIALS=CHANGE ME
|
||||
|
|
Loading…
Reference in a new issue