fix: route bugsink.esle.fi to the web service #7
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/web-domain-and-port"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
bugsink.esle.fireturns503 no available server. Thewebcontainer hascrash-looped since the 2026-10-23 deploy, so Traefik has no router for the host
and Coolify's catch-all router answers instead.
Root cause
Coolify reads
SERVICE_URL_<NAME>as a compose service name. The compose fileused
SERVICE_URL_BUGSINK, but the service isweb:SERVICE_URL_WEBto the deploy's.env, notSERVICE_URL_BUGSINK, soBASE_URL=${SERVICE_URL_BUGSINK}rendered empty.Bugsink's startup check then fails with
bsmain.W003 The BASE_URL setting must be a valid URLand the container exits 1._8000suffix never reached thewebdomain, so its Traefik router hasno
loadbalancer.server.portlabel. The image declares noEXPOSE, soTraefik would drop the container with
port is missingeven once it started.CI stubbed
SERVICE_URL_BUGSINK— a variable Coolify never writes — which hidboth failures.
Changes
BASE_URL=${SERVICE_URL_WEB}, andexpose: "8000"onweb. Coolify 4.5.3uses the first
exposeentry as the routing port for any domain that namesnone, including domains edited in the UI later. CI stub renamed; README
updated.
pg_isreadynowpasses
-d ${POSTGRES_DB:-bugsink}. Without it, Postgres loggedFATAL: database "<user>" does not existon every 5-second probe, while theprobe itself still passed.
The credential variables (
SERVICE_USER_BUGSINK,SERVICE_PASSWORD_*) areunchanged: renaming them would generate credentials the existing database
rejects.
Verification
.envshaped like Coolify's: before,BASE_URL=''and noexposed port; after,
BASE_URL=https://bugsink.esle.fiandexpose: 8000.docker compose config --quietwith the CI stubs: exit 0, no warnings.logs no
FATALlines (the old form logs 10).neither is configured in this repo): no new findings, pre-existing ones
unchanged.
After merge
Redeploy in Coolify. Expected:
webreportsUp (healthy), its router labelsinclude
loadbalancer.server.port=8000, andhttps://bugsink.esle.fiservesBugsink.
Optional cleanup in Coolify: the stale
SERVICE_URL_BUGSINK*andSERVICE_FQDN_BUGSINK*environment variables.