Files
docker-rtorrent/docker-compose.yml
Ketan Patel 4b53923829
Build and Push Docker Image / build (push) Successful in 53s
Make distroless the sole latest image and default Compose runtime
2026-10-03 00:06:00 -04:00

42 lines
1.3 KiB
YAML

---
services:
rtorrent:
image: docker.io/k2patel/rtorrent:latest
container_name: rtorrent
environment:
- TZ=${TZ}
- HOME=/root
volumes:
- "${TORRENT_LOCATION}:/home/nfs_download:rw"
- "${TORRENTRC}:/root/.rtorrent.rc"
- "${TORRENTSESSION}:/home/nfs_download/rsession:rw"
ports:
- 5001
restart: unless-stopped
healthcheck:
test: ["CMD", "/usr/local/bin/rtorrent-entrypoint", "--healthcheck"]
interval: 10s # Check every 10 seconds
timeout: 10s # Allow the command 5 seconds to complete
retries: 5 # Number of consecutive failures before marking as 'unhealthy'
start_period: 90s # Give the service 30 seconds to start up before starting health checks
floodui:
image: docker.io/k2patel/floodui:latest
container_name: floodui
environment:
- TZ=${TZ}
- FLOOD_SECRET=${FLOOD_SECRET}
- RTORRENT_SOCK=${RTORRENT_SOCK}
- RTORRENT_SCGI_HOST=${RTORRENT_SCGI_HOST}
- RTORRENT_SCGI_PORT=${RTORRENT_SCGI_PORT}
volumes:
- "${TORRENT_LOCATION}:/home/nfs_download:ro"
- "${FLOOD_LOCATION}/v4/config:/config:rw"
- "${FLOOD_LOCATION}/server/db:/server/db:rw"
ports:
- 12080:3000
restart: unless-stopped
depends_on:
rtorrent:
condition: service_healthy