From ad4b9f5a12a439ff5fd321e49d1ca79d66ecd6ef Mon Sep 17 00:00:00 2001 From: Moheeb Zara Date: Thu, 21 May 2026 17:39:00 -0700 Subject: [PATCH] glitchtip: default to port 8100 to avoid Supabase Kong (8000) collision --- deploy/glitchtip/.env.example | 5 +++-- deploy/glitchtip/README.md | 11 ++++++----- deploy/glitchtip/docker-compose.yml | 4 +++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/deploy/glitchtip/.env.example b/deploy/glitchtip/.env.example index a4045fa..df09d62 100644 --- a/deploy/glitchtip/.env.example +++ b/deploy/glitchtip/.env.example @@ -10,10 +10,11 @@ SECRET_KEY= # Public base URL GlitchTip uses to build DSNs and links. For the default # localhost + SSH-tunnel setup leave as-is; for a reverse-proxied subdomain # set e.g. https://glitchtip.example.com -GLITCHTIP_DOMAIN=http://localhost:8000 +GLITCHTIP_DOMAIN=http://localhost:8100 # Host port the dashboard binds to (127.0.0.1 only, see docker-compose.yml). -GLITCHTIP_PORT=8000 +# Default 8100 to avoid Supabase's Kong gateway, which uses 8000. +GLITCHTIP_PORT=8100 # Let the first visitor self-register the initial admin user, then turn this # off (set to False and `docker compose up -d`) to close registration. diff --git a/deploy/glitchtip/README.md b/deploy/glitchtip/README.md index 3e65248..6a043a8 100644 --- a/deploy/glitchtip/README.md +++ b/deploy/glitchtip/README.md @@ -21,11 +21,12 @@ docker compose up -d ``` `migrate` runs once automatically, then `web` + `worker` start. The dashboard -binds to `127.0.0.1:8000` only (no public surface). Reach it either by: +binds to `127.0.0.1:8100` only (port 8100 by default so it does not collide with +Supabase's Kong gateway on 8000; no public surface). Reach it either by: -- an SSH tunnel: `ssh -L 8000:127.0.0.1:8000 you@your-host` then open - `http://localhost:8000`, or -- your own reverse proxy / TLS in front of `127.0.0.1:8000` (set +- an SSH tunnel: `ssh -L 8100:127.0.0.1:8100 you@your-host` then open + `http://localhost:8100`, or +- your own reverse proxy / TLS in front of `127.0.0.1:8100` (set `GLITCHTIP_DOMAIN` to that URL). ## Connect the app @@ -33,7 +34,7 @@ binds to `127.0.0.1:8000` only (no public surface). Reach it either by: 1. In GlitchTip: register the first user, create an Organization, then a Project (platform: Node/JavaScript). Copy the Project's **DSN**. 2. Set `SENTRY_DSN=` in the app's environment and restart the app. - (For the localhost setup the DSN host will be `localhost:8000`; the app + (For the localhost setup the DSN host will be `localhost:8100`; the app reaches GlitchTip over the loopback on the same host.) 3. Turn off open registration: set `ENABLE_OPEN_USER_REGISTRATION=False` in `.env` and `docker compose up -d`. diff --git a/deploy/glitchtip/docker-compose.yml b/deploy/glitchtip/docker-compose.yml index 2a71e5c..e8e48be 100644 --- a/deploy/glitchtip/docker-compose.yml +++ b/deploy/glitchtip/docker-compose.yml @@ -60,7 +60,9 @@ services: REDIS_URL: redis://redis:6379/0 PORT: 8080 ports: - - '127.0.0.1:${GLITCHTIP_PORT:-8000}:8080' + # Default 8100 (not 8000) so it does not collide with Supabase's Kong + # gateway, which binds 8000 on a self-hosted Supabase host. + - '127.0.0.1:${GLITCHTIP_PORT:-8100}:8080' depends_on: postgres: condition: service_healthy