# Included by ../../docker-compose.yaml; use the root Compose entrypoint. services: # Augustin Sven # POC for SiwssFel hedgedoc_app: env_file: - path: ${WEBHOSTING_ENV_DIR:-/etc/webhosting}/hedgedoc/app.env required: true format: raw image: quay.io/hedgedoc/hedgedoc:latest container_name: hedgedoc environment: - CMD_DB_DIALECT=postgres - CMD_DB_HOST=hedgedoc_db - CMD_DB_PORT=5432 - CMD_DB_DATABASE=hedgedoc - CMD_DOMAIN=hedgedoc.psi.ch - CMD_URL_ADDPORT=false - CMD_PROTOCOL_USESSL=true - CMD_LDAP_URL=ldaps://dc00.d.psi.ch - CMD_LDAP_SEARCHBASE=OU=users,OU=psi,DC=d,DC=psi,DC=ch - CMD_LDAP_SEARCHFILTER=(&(objectcategory=person)(objectclass=user)(|(sAMAccountName={{username}})(mail={{username}}))) - CMD_LDAP_USERIDFIELD=sAMAccountName - CMD_LDAP_PROVIDERNAME=PSI - NODE_ENV=production - CMD_EMAIL=false - CMD_ALLOW_EMAIL_REGISTER=false volumes: - /opt/webcontent/sf-hedgedoc/uploads:/hedgedoc/public/uploads restart: always depends_on: hedgedoc_db: condition: service_healthy networks: - backend - hedgedoc_backend # Augustin Sven hedgedoc_db: env_file: - path: ${WEBHOSTING_ENV_DIR:-/etc/webhosting}/hedgedoc/db.env required: true format: raw image: postgres:13.4-alpine container_name: hedgedoc_db environment: - POSTGRES_DB=hedgedoc volumes: - /opt/webcontent/sf-hedgedoc/data:/var/lib/postgresql/data restart: always healthcheck: test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""] interval: 10s timeout: 5s retries: 5 start_period: 30s networks: - hedgedoc_backend