From a20927913fd687c957aadfbd29af5318cdae9d89 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Tue, 21 Apr 2026 15:08:36 -0400 Subject: [PATCH] fix(docker): use host network mode for backend Backend couldn't reach Tautulli (172.20.1.255) or Overseer (172.20.1.225) from Docker bridge network. Switched to host network mode so backend can access local network services. Updated DATABASE_URL and REDIS_URL to use localhost. --- docker-compose.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 241ee7b..7e381ff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -45,8 +45,8 @@ services: retries: 5 environment: - NODE_ENV=production - - DATABASE_URL=postgresql://coop:coop_password@postgres:5432/coop_credits?schema=public - - REDIS_URL=redis://redis:6379 + - DATABASE_URL=postgresql://coop:coop_password@localhost:5432/coop_credits?schema=public + - REDIS_URL=redis://localhost:6379 - PORT=3002 - JWT_SECRET=${JWT_SECRET} - SOLANA_RPC_URL=${SOLANA_RPC_URL:-https://api.devnet.solana.com} @@ -60,15 +60,12 @@ services: - OVERSEER_URL=${OVERSEER_URL} - OVERSEER_API_KEY=${OVERSEER_API_KEY} - ENCRYPTION_KEY=${ENCRYPTION_KEY} - ports: - - "3002:3002" # Exposed on all interfaces + network_mode: host depends_on: postgres: condition: service_healthy redis: condition: service_healthy - networks: - - coop-network restart: unless-stopped frontend: