PaaS
Coolify
Deploy TorrentDrive on Coolify with zero manual configuration using magic domain variables.
Coolify automatically generates a public URL, provisions TLS via Traefik/Caddy, and injects the domain into TorrentDrive's environment so there is nothing to configure by hand.
Steps
- In Coolify, click + New → Docker Compose.
- Set Repository URL to
https://github.com/TorrentDrive/backend, branchmain, and Compose File Location to/paas/coolify/docker-compose.yml. - Click Deploy. First boot takes 1–2 minutes while PostgreSQL initializes.
- Coolify routes your domain to container port
47100. Open it and complete the First-Run Setup Wizard.
How the Coolify Magic Variables Work
environment:
- SERVICE_FQDN_TORRENTDRIVE_47100
- PUBLIC_FRONTEND_URL=${SERVICE_URL_TORRENTDRIVE:-}
- NEXTAUTH_URL=${SERVICE_URL_TORRENTDRIVE:-}SERVICE_FQDN_TORRENTDRIVE_47100tells Coolify to generate a domain and route traffic to container port 47100.SERVICE_URL_TORRENTDRIVEpasses the full scheme + hostname (e.g.https://torrents.example.com) intoPUBLIC_FRONTEND_URLandNEXTAUTH_URLso NextAuth sessions and Google Drive OAuth callbacks work immediately without manual environment edits.
To use your own custom domain, enter it in Coolify's Domains field for the torrentdrive service
and redeploy — SERVICE_URL_TORRENTDRIVE updates automatically.