Skip to content

Commit

Permalink
server-trans.md: Add Docker procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril committed Jul 14, 2024
1 parent 6a5dad0 commit a54355e
Showing 1 changed file with 63 additions and 2 deletions.
65 changes: 63 additions & 2 deletions server-trans.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,67 @@
## Torrent | Transmission
# Torrent | Transmission
1. [Docker container installation](#docker-container-installation) (For use on immutable OS)
2. [Traditional linux installation](#traditional-linux-installation)

### Transmission@server
## Docker container installation

Setup the directory structure
```sh
mkdir -p /etc/transmission/config
mkdir -p /var/storage/watch
```

/etc/transmission/docker-compose.yml
```
---
services:
transmission:
image: lscr.io/linuxserver/transmission:latest
container_name: transmission
environment:
- PUID=1000
- PGID=100
- TZ=America/Denver
- TRANSMISSION_WEB_HOME= #optional
- USER= #optional
- PASS= #optional
- WHITELIST=127.0.0.1,192.168.9.*
- PEERPORT=51417
- HOST_WHITELIST=dubserv
volumes:
- /etc/transmission/config:/config
- /var/storage:/storage
- /var/storage/watch:/watch
ports:
- 9091:9091
- 51413:51413
- 51413:51413/udp
restart: unless-stopped
```

/etc/systemd/system/transmission.service
```
[Unit]
Description=Service for Transmission container
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
WorkingDirectory=/etc/transmission/
ExecStart=/usr/bin/docker-compose -f docker-compose.yml up -d
ExecStop=/usr/bin/docker-compose -f docker-compose.yml stop
StandardOutput=syslog
RemainAfterExit=yes
[Install]
WantedBy=default.target
```
### Notes:
- Am able to set webUI torrent location to `/any/path/I/choose`, and it will create the directories as needed on the host OS under `/var/storage` (as defined by the `docker-compose.yml`)
- Ref: https://docs.linuxserver.io/images/docker-transmission/

## Traditional linux installation
192.168.9.13:9091 :: dubserv:9091 :: [ref_Transmission_Docs_headless](https://github.com/transmission/transmission/blob/main/docs/Headless-Usage.md) :: [ref_Fedora-spec](https://ask.fedoraproject.org/en/question/67980/how-do-i-use-transmission-from-server-21/) :: [ref_ubuntu-inst](https://help.ubuntu.com/community/TransmissionHowTo) ::

-------------
Expand Down

0 comments on commit a54355e

Please sign in to comment.