diff --git a/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 index 54de020..692e028 100644 --- a/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 +++ b/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 @@ -52,6 +52,24 @@ services: depends_on: - database + hedgedoc-expire: + image: git.hamburg.ccc.de/ccchh/hedgedoc-expire/hedgedoc-expire:latest + command: "check" + # command: "cron" + environment: + - "POSTGRES_HOSTNAME=database" + - "POSTGRES_USERNAME=hedgedoc" + - "POSTGRES_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/pad/DB_PASSWORD", create=false, missing="error") }}" + - "SMTP_FROM=pad@hamburg.ccc.de" + - "SMTP_HOSTNAME=cow-intern.hamburg.ccc.de" + - "SMTP_USERNAME=pad@hamburg.ccc.de" + - "SMTP_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/pad/smtp_password", create=false, missing="error") }}" + - "URL=https://pad.hamburg.ccc.de" + networks: + backend: + depends_on: + - database + volumes: database: {} uploads: {}