Rtorrent in docker with RPC2 interface and web services.
version: '3.1'
services:
rtorrent:
restart: always
image: deuxmax/rtorrent:latest
ports:
- 8080:80
environment:
CORS_DOMAIN: http://localhost:3000
WEBHOOK_URLS: http://localhost:5000,http://localhost:5001
volumes:
- ${STORAGE_PATH}/dtorrent/downloaded:/var/rtorrent/downloaded
- ${STORAGE_PATH}/dtorrent/torrent:/var/rtorrent/torrents
- ${STORAGE_PATH}/dtorrent/session:/var/rtorrent/session
- ${STORAGE_PATH}/dtorrent/logs:/var/rtorrent/logs
rTorrent is launching with user torrent (1000:1000), so your volumes mounted should be accessible by 1000.
sudo chown -R 1000:1000 /home/my/data
/var/rtorrent/torrents : directory of torrent files/var/rtorrent/downloaded : directory of torrent downloaded/var/rtorrent/session : (optional, useful for know historical for up/down rate)/var/rtorrent/logs : logsFor add a hook you should put urls in environment variable WEBHOOK_URLS separated with coma.
version: '3'
services:
rtorrent:
image: namespace/container:latest
restart: always
environment:
WEBHOOK_URLS: http://localhost,http://localhost:9090/hook
ports:
- 8080:80
volumes:
- /home/my/data/files:/var/rtorrent/downloaded
- /home/my/data/torrent:/var/rtorrent/torrents
- /home/my/data/logs:/var/rtorrent/logs
Content type
Image
Digest
Size
148.8 MB
Last updated
over 6 years ago
docker pull deuxmax/rtorrent