switch to direct DB connection on supabase_default network, bypass supavisor

This commit is contained in:
2026-07-04 11:21:01 +02:00
parent 98c71d4232
commit 753174b946
2 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
# Telegram Bot Token (from @BotFather) # Telegram Bot Token (from @BotFather)
TELEGRAM_BOT_TOKEN=your-bot-token-here TELEGRAM_BOT_TOKEN=your-bot-token-here
# Supabase PostgreSQL Connection (pooled via supavisor on port 6543) # Direct Supabase Postgres connection (join supabase_default network, connect to db:5432)
POSTGRES_HOST=192.168.178.3 POSTGRES_HOST=db
POSTGRES_PORT=6543 POSTGRES_PORT=5432
POSTGRES_USER=postgres POSTGRES_USER=postgres
POSTGRES_PASSWORD=your-supabase-db-password POSTGRES_PASSWORD=your-supabase-db-password
POSTGRES_DB=postgres POSTGRES_DB=postgres
+8 -8
View File
@@ -2,11 +2,11 @@ services:
worker: worker:
build: ./worker build: ./worker
restart: unless-stopped restart: unless-stopped
environment: env_file:
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN} - .env
POSTGRES_HOST: ${POSTGRES_HOST:-192.168.178.3} networks:
POSTGRES_PORT: "6543" - supabase_default
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} networks:
POSTGRES_DB: ${POSTGRES_DB:-postgres} supabase_default:
DEFAULT_INTERVAL_MINUTES: ${DEFAULT_INTERVAL_MINUTES:-60} external: true