From 2eb18460beed75aea592453bfa015a85c38cd9f9 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Mon, 20 May 2024 13:49:25 +0200 Subject: [PATCH] Add pad expiry --- .../chaosknoten/configs/pad/compose.yaml.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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: {}