From 2b52e275327f6478166b680e7ef7b7fe153e5749 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 1 Nov 2025 17:08:11 +0000 Subject: [PATCH] fix: Update test database connection to use host.docker.internal - Changed DB_HOST from localhost to host.docker.internal - Added extra_hosts configuration to enable host-gateway access - This allows test container to connect to the existing PostgreSQL database --- docker-compose.test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 0120dc6..bcad469 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -8,7 +8,7 @@ services: ports: - "8081:8081" environment: - - DB_HOST=localhost + - DB_HOST=host.docker.internal - DB_PORT=5432 - DB_NAME=calejo - DB_USER=calejo @@ -21,6 +21,8 @@ services: - REST_API_PORT=8081 - HEALTH_MONITOR_PORT=9091 - LOG_LEVEL=DEBUG + extra_hosts: + - "host.docker.internal:host-gateway" volumes: - ./static:/app/static - ./logs:/app/logs