From 7ede416a3b68cadd00fae24e0eddd093af5ecde9 Mon Sep 17 00:00:00 2001 From: jocke Date: Fri, 31 Jul 2026 10:15:18 +0000 Subject: [PATCH] Drop host port publish for postgres (5433 taken by bilhej-postgres-prod on host) --- .env.example | 3 ++- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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: