fix(obs): set POSTGRES_HOST per environment — staging/prod use compose auto-names not archive-db
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 2m58s
CI / OCR Service Tests (pull_request) Successful in 19s
CI / Backend Unit Tests (pull_request) Successful in 2m39s
CI / fail2ban Regex (pull_request) Successful in 40s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m0s
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 2m58s
CI / OCR Service Tests (pull_request) Successful in 19s
CI / Backend Unit Tests (pull_request) Successful in 2m39s
CI / fail2ban Regex (pull_request) Successful in 40s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m0s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -144,6 +144,7 @@ jobs:
|
|||||||
GLITCHTIP_SECRET_KEY=${{ secrets.GLITCHTIP_SECRET_KEY }}
|
GLITCHTIP_SECRET_KEY=${{ secrets.GLITCHTIP_SECRET_KEY }}
|
||||||
POSTGRES_USER=archiv
|
POSTGRES_USER=archiv
|
||||||
POSTGRES_PASSWORD=${{ secrets.STAGING_POSTGRES_PASSWORD }}
|
POSTGRES_PASSWORD=${{ secrets.STAGING_POSTGRES_PASSWORD }}
|
||||||
|
POSTGRES_HOST=archiv-staging-db-1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Validate observability compose config
|
- name: Validate observability compose config
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ jobs:
|
|||||||
GLITCHTIP_SECRET_KEY=${{ secrets.GLITCHTIP_SECRET_KEY }}
|
GLITCHTIP_SECRET_KEY=${{ secrets.GLITCHTIP_SECRET_KEY }}
|
||||||
POSTGRES_USER=archiv
|
POSTGRES_USER=archiv
|
||||||
POSTGRES_PASSWORD=${{ secrets.PROD_POSTGRES_PASSWORD }}
|
POSTGRES_PASSWORD=${{ secrets.PROD_POSTGRES_PASSWORD }}
|
||||||
|
POSTGRES_HOST=archiv-production-db-1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Start observability stack
|
- name: Start observability stack
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ GF_SERVER_ROOT_URL=https://grafana.archiv.raddatz.cloud
|
|||||||
GLITCHTIP_DOMAIN=https://glitchtip.archiv.raddatz.cloud
|
GLITCHTIP_DOMAIN=https://glitchtip.archiv.raddatz.cloud
|
||||||
|
|
||||||
# PostgreSQL hostname for GlitchTip db-init and workers.
|
# PostgreSQL hostname for GlitchTip db-init and workers.
|
||||||
# archive-db is the production default (full stack running).
|
# The actual value depends on the Compose project name — it is not a fixed string.
|
||||||
# Override in obs-secrets.env when a different stack is active.
|
# CI sets POSTGRES_HOST in obs-secrets.env per environment:
|
||||||
POSTGRES_HOST=archive-db
|
# staging: archiv-staging-db-1 (project archiv-staging + service db)
|
||||||
|
# production: archiv-production-db-1 (project archiv-production + service db)
|
||||||
|
# For local dev, set POSTGRES_HOST in your .env file (defaults to archive-db there).
|
||||||
|
|||||||
Reference in New Issue
Block a user