---
title:
source:
author: shenwei
published:
created:
description:
tags: [docker, transmission]
---

#docker #transmission

``` yaml
version: '3.8'

services:
  transmission:
    image: lscr.io/linuxserver/transmission:latest
    container_name: transmission
    restart: unless-stopped
    network_mode: bridge
    ports:
      - "9091:9091"          # Web UI 访问端口
      - "51413:51413"        # Peer 监听端口 (TCP)
      - "51413:51413/udp"    # Peer 监听端口 (UDP)
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - USER=shenwei        # 可选：设置 Web UI 用户名
      - PASS=zmkm99zmkm00        # 可选：设置 Web UI 密码
    volumes:
      - /home/shenwei/Docker/transmission/data:/config
      - /home/shenwei/Downloads:/downloads

```