Demo

Database / env connection issues

Postgres, Redis, or other services fail to connect because hostnames differ inside Docker vs on the host.

Symptom

Backend cannot reach the database or Redis, seeds fail from the host, or env values look correct but connections time out.

Fix

  • Inside Docker: DB_HOST=db, REDIS_HOST=redis (Compose service names)
  • On the host (psql / seeds): use localhost / 127.0.0.1
  • Confirm DB_* and REDIS_* in base/backend/.env match compose
  • See Environment variables for the full key list