ansible-infra/resources/chaosknoten/hta/docker_compose/compose.yaml.j2
Renovate 01d411bb3a
All checks were successful
/ build (pull_request) Successful in 50s
/ Ansible Lint (push) Successful in 2m55s
/ Ansible Lint (pull_request) Successful in 3m6s
Update all stable non-major dependencies
2026-11-05 08:17:00 +00:00

92 lines
4.1 KiB
Django/Jinja

---
# Hackertours Admin, see https://git.hamburg.ccc.de/CCCHH/hackertours-admin/src/branch/main/compose.yaml
services:
database:
image: docker.io/library/postgres:18-alpine
environment:
POSTGRES_USER: hackertours
POSTGRES_PASSWORD: {{ secret__hta_db_password | to_json }}
POSTGRES_DB: hackertours
volumes:
- database:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hackertours"]
interval: 5s
retries: 10
networks:
backend:
restart: unless-stopped
app:
image: git.hamburg.ccc.de/ccchh/hackertours-admin:main
environment:
DATABASE_URL: {{ ('postgres://hackertours:' ~ secret__hta_db_password ~ '@database:5432/hackertours') | to_json }}
GUNICORN_CMD_ARGS: "--timeout 60"
DJANGO_SECRET_KEY: {{ secret__hta_django_secret_key | to_json }}
DJANGO_ALLOWED_HOSTS: hta.hamburg.ccc.de
DJANGO_CSRF_TRUSTED_ORIGINS: https://hta.hamburg.ccc.de
DJANGO_BEHIND_PROXY: "1"
GOTENBERG_URL: http://gotenberg:3000
MOTIS_URL: http://motis:8080
HUGO_REPO_URL: ssh://forgejo@git.hamburg.ccc.de/CCCHH/hackertours.git
HUGO_REPO_SSH_KEY: {{ secret__hta_hugo_repo_ssh_key | to_json }}
# Output of `ssh-keyscan git.hamburg.ccc.de`, newlines written as \n
HUGO_REPO_KNOWN_HOSTS: 'git.hamburg.ccc.de ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC91Cgx/Ow3oRm1GdB5mkGbUEIKsWfggsVrvHy2EwLfTKPeDdFDzEwQaN6gzUxiLHhk6zNK4ygCOhMjEQFPw2mRAgsSk0vRnGxnnd+AhPfCMK+nZ4mAJ2EIeGiOMpYoJ49XytL+H0hwJcFlawxzkuOMFve65mOmJnA5zhDX8EsBbi8ulnuOfiXV/iq8VSRWONNCX/rgUJDBcryGAii7LY4zfTg7taWFmBZpFq/qcMaqXLwp6L63c7POmjUsrN8WphRUTYNoeZh7gmUZNanqGpGotsKisU+sQThuMpMEm7imSAtqL1qYfjPTxjlcreL1asqfvjp5K1apt+NSQdEbeRbcAU1xLjKzW3pzYh1bWvC1FJfgFHptEfqgkK3ebCBoS9xVUXtnyvUbbi569QM1Qly+W5r6N8a4aZHnVD4RFAzHNNDFYaks1E6uKfdgLQcwzLhXcB+fRMy8+b4RLz46vS/dYcrxKVMLtBiVZis9pd4GZ4IVLUXu9Z3ixFPBdf/YtW/WrKJKyEydEh0nMP0o49sWTI25yhxKPL2JXLlaQozVD6sxUP1wDU2MW1OvNlf4JsomyYiQ9gjsacP63RL5G8193Hw4A+r77pILQbv3PzVze1wqU/fyOBt/IImxxQ6fOy1sjohRuaXAPn4NaFTbykecyvr4GUaFvK5evG8Ao5Ql3w==\ngit.hamburg.ccc.de ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILrfbiDq3l25G7FUvbAGEdbBvIlbm+Od+P33OgIup2IR'
PRETIX_URL: https://tickets.hamburg.ccc.de
PRETIX_TOKEN: {{ secret__hta_pretix_token | to_json }}
OIDC_RP_CLIENT_ID: hta
OIDC_RP_CLIENT_SECRET: {{ secret__hta_oidc_client_secret | to_json }}
OIDC_OP_AUTHORIZATION_ENDPOINT: https://id.hamburg.ccc.de/realms/ccchh/protocol/openid-connect/auth
OIDC_OP_TOKEN_ENDPOINT: https://id.hamburg.ccc.de/realms/ccchh/protocol/openid-connect/token
OIDC_OP_USER_ENDPOINT: https://id.hamburg.ccc.de/realms/ccchh/protocol/openid-connect/userinfo
OIDC_OP_JWKS_ENDPOINT: https://id.hamburg.ccc.de/realms/ccchh/protocol/openid-connect/certs
volumes:
- data:/data
ports:
- "127.0.0.1:8000:8000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz')"]
interval: 30s
retries: 3
depends_on:
database:
condition: service_healthy
networks:
backend:
frontend:
restart: unless-stopped
# Renders the PDF handouts (HTML to PDF with Chromium); needs internet access for the map tiles.
gotenberg:
image: docker.io/gotenberg/gotenberg:8.39.0
command: ["gotenberg", "--api-timeout=60s", "--libreoffice-disable-routes"]
networks:
frontend:
restart: unless-stopped
# Public transport routing with the HVV timetable. On each start it fetches the newest timetable
# and OpenStreetMap data (about 1 GB) and imports them; it exits after MOTIS_REFRESH_HOURS to
# restart with fresh data.
motis:
image: git.hamburg.ccc.de/ccchh/hackertours-motis:main
environment:
MOTIS_REFRESH_HOURS: "24"
# Lift status from DB FaSta
DB_FASTA_CLIENT_ID: 9771ff8a0dd67637801e95fde5a5999f
DB_FASTA_API_KEY: {{ secret__hta_db_fasta_api_key | to_json }}
volumes:
- motis:/data
networks:
frontend:
restart: unless-stopped
volumes:
database: {}
data: {}
motis: {}
networks:
backend:
internal: true
frontend: