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
This commit is contained in:
parent
beda7429c3
commit
2b52e27532
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue