From 753174b9468efe9fce630a6ae2cd809a942bb1bd Mon Sep 17 00:00:00 2001 From: Jose Lago Date: Sat, 4 Jul 2026 11:21:01 +0200 Subject: [PATCH] switch to direct DB connection on supabase_default network, bypass supavisor --- .env.example | 6 +++--- docker-compose.yml | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 6ccf086..cb05fd4 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index dafdb2d..fd06548 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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