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.
This commit is contained in:
2026-04-21 15:08:36 -04:00
parent c38117fbe7
commit a20927913f
+3 -6
View File
@@ -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: