diff --git a/.env.example b/.env.example index 47b8b4f..36c2612 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ # ---- Database ---- # Used by apps/api to connect to the postgres service defined in docker-compose.yml. -DATABASE_URL=postgresql://jobhunt:***@localhost:5433/jobhunt +# Postgres is not published to the host; all services run inside the compose network. +DATABASE_URL=postgresql://jobhunt:***@postgres:5432/jobhunt # ---- LLM Gateway ---- # Primary provider (default: GLM-5.2 via ollama-cloud). diff --git a/docker-compose.yml b/docker-compose.yml index 02240fb..ae03874 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,8 @@ services: POSTGRES_USER: jobhunt POSTGRES_PASSWORD: jobhunt POSTGRES_DB: jobhunt - ports: - - "5433:5432" + # No host port publishing: CI/tests run inside the compose network, and on + # this host 5433 is already taken by bilhej-postgres-prod. volumes: - jobhunt_pgdata:/var/lib/postgresql/data healthcheck: