Add POSTGRES_HOST variable to service configuration script

- Introduced a new environment variable, POSTGRES_HOST, to ensure Supabase Analytics targets the correct Postgres service name in the Docker setup.
- This change enhances the accuracy of database connection settings in the service configuration process.
This commit is contained in:
Yury Kossakovsky
2025-08-29 09:10:08 -06:00
parent 01cc6d06c8
commit 30b69350f1

View File

@@ -186,6 +186,13 @@ if [ $cloudflare_selected -eq 1 ]; then
fi
fi
# ----------------------------------------------------------------
# Ensure Supabase Analytics targets the correct Postgres service name used by Supabase docker compose
# ----------------------------------------------------------------
write_env_var "POSTGRES_HOST" "db"
# ----------------------------------------------------------------
log_success "Service configuration complete. .env updated at $ENV_FILE"
exit 0