# {{ ansible_managed }} x-environment: &default-environment DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres SECRET_KEY: '{{ glitchtip_secret_key }}' PORT: {{ glitchtip_app_port }} EMAIL_URL: consolemail:// GLITCHTIP_DOMAIN: 'https://{{ glitchtip_domain }}' DEFAULT_FROM_EMAIL: email@example.com CELERY_WORKER_AUTOSCALE: "1,3" CSP_DEFAULT_SRC: "'self',{{ glitchtip_domain }}" CORS_ORIGIN_WHITELIST: https://{{ glitchtip_domain }} CSRF_TRUSTED_ORIGINS: https://{{ glitchtip_domain }} x-depends_on: &default-depends_on - postgres - redis services: postgres: image: postgres:17 environment: POSTGRES_HOST_AUTH_METHOD: 'trust' restart: always volumes: - pg-data:/var/lib/postgresql/data redis: image: valkey/valkey restart: always web: image: '{{ glitchtip_image_tag }}' depends_on: *default-depends_on ports: - '{{ glitchtip_app_port }}:7200' environment: *default-environment restart: always volumes: - uploads:/code/uploads worker: image: '{{ glitchtip_image_tag }}' command: ./bin/run-celery-with-beat.sh depends_on: *default-depends_on environment: *default-environment restart: always volumes: - uploads:/code/uploads migrate: image: '{{ glitchtip_image_tag }}' depends_on: *default-depends_on command: ./bin/run-migrate.sh environment: *default-environment volumes: pg-data: uploads: