# documentation: https://docs.linuxserver.io/images/docker-transmission/
# slogan: Fast, easy, and free BitTorrent client.
# tags: bittorrent, torrent, peer-to-peer
# logo: svgs/transmission.svg
# port: 9091

services:
  transmission:
    image: lscr.io/linuxserver/transmission:latest
    environment:
      - SERVICE_FQDN_TRANSMISSION_9091
      - PUID=1000
      - PGID=1000
      - USER=${SERVICE_USER_ADMIN}
      - PASS=${SERVICE_PASSWORD_ADMIN}
    volumes:
      - transmission-config:/config
      - transmission-downloads:/downloads
      - transmission-watch:/watch
    healthcheck:
      test: [
        "CMD", 
        "curl", 
        "-sSfL",
        "-u",
        "${SERVICE_USER_ADMIN}:${SERVICE_PASSWORD_ADMIN}", 
        "http://localhost:9091/"
      ]
      interval: 30s
      timeout: 10s
      retries: 3
