Skip to content

DockerCompose

Preston edited this page Aug 6, 2019 · 1 revision

Docker Compose

Basic Setup

services:
  cloud-torrent:
    image: octopustakopi/cloud-torrent-rs:latest
    restart: unless-stopped
    ports:
      - "3000:3000"         # Web UI
      - "50007:50007/tcp"   # Torrent peer connections
      - "50007:50007/udp"
    volumes:
      - ./downloads:/app/downloads
      - ./cloud-torrent.yaml:/app/cloud-torrent.yaml

With Authentication and Custom Port

services:
  cloud-torrent:
    image: octopustakopi/cloud-torrent-rs:latest
    restart: unless-stopped
    ports:
      - "8080:3000"
      - "50007:50007/tcp"
      - "50007:50007/udp"
    environment:
      - AUTH=myuser:mypassword
      - DOWNLOAD_DIR=/app/downloads
      - TITLE=My Torrent Box
    volumes:
      - ./downloads:/app/downloads
      - ./cloud-torrent.yaml:/app/cloud-torrent.yaml

With TLS

services:
  cloud-torrent:
    image: octopustakopi/cloud-torrent-rs:latest
    restart: unless-stopped
    ports:
      - "443:3000"
      - "50007:50007/tcp"
      - "50007:50007/udp"
    environment:
      - AUTH=myuser:mypassword
      - CERT_PATH=/certs/cert.pem
      - KEY_PATH=/certs/key.pem
    volumes:
      - ./downloads:/app/downloads
      - ./cloud-torrent.yaml:/app/cloud-torrent.yaml
      - ./certs:/certs:ro

Notes

  • Ensure downloads/ and cloud-torrent.yaml are persisted as volumes
  • If you need UPnP automatic port forwarding, add network_mode: host
  • Port 50007 is the default torrent incoming port — forward it on your router if behind NAT

Clone this wiki locally