# Self-host Deluge

> A lightweight BitTorrent client with a web interface and plugins. GPL-3.0 licensed. The web UI starts with the default password deluge, so change it on first sign in (Preferences, Interface). Only the web UI is published, so incoming peer connections are limited.

- Page: https://levelrail.com/templates/deluge/
- JSON: https://levelrail.com/templates/deluge.json
- Category: Applications
- Licence: GPL-3.0-or-later (Copyleft license)
- Source: https://github.com/deluge-torrent/deluge
- Upstream docs: https://deluge.readthedocs.io/

## Requirements
- Memory: about 256 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 2.2.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| deluge | lscr.io/linuxserver/deluge | 2.2.0 | 8112 | config -> /config; downloads -> /downloads |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| deluge | PGID | preset |
| deluge | PUID | preset |
| deluge | TZ | preset |

## Deploy

### CLI

```bash
levelrail-cli templates install deluge --name my-deluge
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain deluge=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/deluge/install \
  -d '{
    "name": "my-deluge"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## Questions

### Can I deploy Deluge on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Deluge, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image lscr.io/linuxserver/deluge:2.2.0 is what you deploy there.

Self-host Deluge, Deluge docker compose file, deploy Deluge on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
