Deploy the gateway to Coolify
Deploy the systemprompt.io gateway on Coolify, a self-hostable Heroku-style panel, from a docker-compose service.
On this page
Coolify is a self-hostable, Heroku-style platform you run on your own server. This channel provisions the systemprompt-gateway server plus Postgres from the GHCR image as a docker-compose service.
Pick Coolify when you self-host a control panel and want the gateway managed alongside your other apps, with automatic TLS through its Traefik proxy.
Install (docker-compose service)
- Open your Coolify dashboard, then Services > New Service > Docker Compose.
- Paste the compose from
deploy/coolify/service-template.json(thecomposefield), or usedocker-compose.ymlfrom the repo root withbuild: .swapped forimage: ghcr.io/systempromptio/systemprompt-template:latest. - Coolify pre-creates the env vars it finds in the compose; fill them in on the Environment Variables tab:
POSTGRES_PASSWORD: strong random. Set it before the first deploy. Postgres initialises its volume with whatever password is present on first boot, and changing it later fails auth until the volume is wiped.ANTHROPIC_API_KEYand/orOPENAI_API_KEY/GEMINI_API_KEY: at least one; the container refuses to boot without a provider key.
- Deploy. The gateway reports healthy on
/api/v1/healthabout a minute after first boot (migrations run on start). - Coolify ignores the compose
ports:mapping and exposes services through its Traefik proxy. Set a domain on thegatewayservice (port 8080) to reach it; the dashboard health status works either way.
Verified end-to-end on Coolify 4.1.2 (2026-07-16).
Domain and TLS
Coolify terminates TLS. Point your domain at Coolify, set it on the gateway service, and it provisions Let's Encrypt automatically.
For the complete recipe, see the full Coolify guide in the template repository. For services, environment variables, and proxy settings, see the Coolify documentation.