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=your-bot-token-here
# Supabase PostgreSQL Connection (pooled via supavisor on port 6543)
POSTGRES_HOST=192.168.178.3
POSTGRES_PORT=6543
# Direct Supabase Postgres connection (join supabase_default network, connect to db:5432)
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your-supabase-db-password
POSTGRES_DB=postgres
+8 -8
View File
@@ -2,11 +2,11 @@ services:
worker:
build: ./worker
restart: unless-stopped
environment:
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
POSTGRES_HOST: ${POSTGRES_HOST:-192.168.178.3}
POSTGRES_PORT: "6543"
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
DEFAULT_INTERVAL_MINUTES: ${DEFAULT_INTERVAL_MINUTES:-60}
env_file:
- .env
networks:
- supabase_default
networks:
supabase_default:
external: true