feat: add extra_hosts configuration for Docker services

This commit is contained in:
Anish Sarkar 2026-04-21 23:17:26 +05:30
parent 2657c9e871
commit 59f8696eac
2 changed files with 8 additions and 0 deletions

View file

@ -77,6 +77,8 @@ services:
- shared_temp:/shared_tmp
env_file:
- ../surfsense_backend/.env
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DATABASE_URL=${DATABASE_URL:-postgresql+asyncpg://${DB_USER:-postgres}:${DB_PASSWORD:-postgres}@${DB_HOST:-db}:${DB_PORT:-5432}/${DB_NAME:-surfsense}}
- CELERY_BROKER_URL=${REDIS_URL:-redis://redis:6379/0}
@ -118,6 +120,8 @@ services:
- shared_temp:/shared_tmp
env_file:
- ../surfsense_backend/.env
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DATABASE_URL=${DATABASE_URL:-postgresql+asyncpg://${DB_USER:-postgres}:${DB_PASSWORD:-postgres}@${DB_HOST:-db}:${DB_PORT:-5432}/${DB_NAME:-surfsense}}
- CELERY_BROKER_URL=${REDIS_URL:-redis://redis:6379/0}