--- # Hackertours Admin, see https://git.hamburg.ccc.de/CCCHH/hackertours-admin/src/branch/main/compose.yaml x-shared-env: &shared-env DATABASE_URL: {{ ('postgres://hackertours:' ~ secret__hta_db_password ~ '@database:5432/hackertours') | to_json }} DJANGO_SECRET_KEY: {{ secret__hta_django_secret_key | to_json }} GEOFOX_USERNAME: StefanBethke GEOFOX_PASSWORD: {{ secret__hta_geofox_secret | to_json }} GOTENBERG_URL: http://gotenberg:3000 HUGO_BRANCH: main HUGO_REPO_URL: ssh://forgejo@git.hamburg.ccc.de/CCCHH/hackertours.git HUGO_REPO_SSH_KEY: {{ secret__hta_hugo_repo_ssh_key | to_json }} 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' MASTODON_URL: https://chaos.social MASTODON_TOKEN: {{ secret__hta_mastodon_token | to_json }} MOTIS_URL: http://motis:8080 PRETIX_URL: https://tickets.hamburg.ccc.de PRETIX_TOKEN: {{ secret__hta_pretix_token | to_json }} 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: <<: *shared-env DJANGO_ALLOWED_HOSTS: hta.hamburg.ccc.de DJANGO_CSRF_TRUSTED_ORIGINS: https://hta.hamburg.ccc.de DJANGO_BEHIND_PROXY: "1" GUNICORN_CMD_ARGS: "--timeout 60" 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 worker: image: git.hamburg.ccc.de/ccchh/hackertours-admin:main restart: unless-stopped environment: <<: *shared-env SKIP_MIGRATE: "1" command: ["python", "manage.py", "run_worker"] # A website sync can take a few minutes; the worker finishes its job before stopping. stop_grace_period: 5m depends_on: app: condition: service_healthy volumes: - data:/data networks: backend: frontend: # Renders the PDF handouts (HTML to PDF with Chromium); needs internet access for the map tiles. gotenberg: image: docker.io/gotenberg/gotenberg:9.5.1 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_fasta_api_key | to_json }} volumes: - motis:/data networks: frontend: restart: unless-stopped volumes: database: {} data: {} motis: {} networks: backend: internal: true frontend: