Dokploy
Deploy TorrentDrive on Dokploy in one click using the native template or Docker Compose.
Dokploy fronts services with Traefik, so nothing needs to be published on the host and TLS is
terminated automatically. TorrentDrive ships both a Compose manifest (paas/dokploy/docker-compose.yml)
and a native Dokploy template blueprint (paas/dokploy/template.toml).
Option A: Deploy as a Compose Service
- In Dokploy, click Create Project → Compose.
- Set Repository to
https://github.com/TorrentDrive/backend, branchmain, and Compose Path topaas/dokploy/docker-compose.yml. - Click Deploy. First boot takes 1–2 minutes while PostgreSQL initializes and secrets are
generated into
/data/postgres/secrets.env. - Go to Domains → Add Domain, select service
torrentdrive, set Container Port to47100, and enable HTTPS. - Open your domain to launch the First-Run Setup Wizard.
Option B: Import the Native Dokploy Template (template.toml)
paas/dokploy/template.toml
pre-configures port 47100 routing and auto-generates PUBLIC_FRONTEND_URL and NEXTAUTH_URL from
Dokploy's ${domain} generator so Google Drive OAuth callbacks work out of the box.
Volumes & Persistence
The compose file declares three named volumes (torrentdrive-pgdata, torrentdrive-redis, and
torrentdrive-downloads). Back up torrentdrive-pgdata before upgrades — it holds both PostgreSQL
data and /data/postgres/secrets.env. See Updating.
Security: Only Port 47100 is Routed
The Dokploy manifest exposes only port 47100 to Traefik. Internal ports (47200 API/Hangfire,
47500 Grafana, 47600 Prometheus) stay private inside the container network.