Sign inSign up

sunerpy/pt-tools

By sunerpy

•Updated 15 days ago

Image
0

10K+

sunerpy/pt-tools repository overview

⁠Docker 镜像使用说明

本镜像提供 pt-tools,用于自动化管理PT站点的相关任务。

⁠支持的架构

目前提供的镜像基于 alpine 构建,可在 linux/amd64 等常见架构上运行。

⁠快速开始

⁠使用 Docker CLI
docker run -d \
  -e PT_HOST=0.0.0.0 \
  -e PT_PORT=8080 \
  -p 8080:8080 \
  -v ~/pt-data:/app/.pt-tools \
  --name pt-tools \
  sunerpy/pt-tools:latest
⁠使用 Docker Compose
version: "3.8"
services:
  pt-tools:
    image: sunerpy/pt-tools:latest
    container_name: pt-tools
    environment:
      PT_WEB: "1"
      PT_HOST: "0.0.0.0"
      PT_PORT: "8080"
      PUID: "1000"
      PGID: "1000"
    ports:
      - "8080:8080"
    volumes:
      - ./data:/app/.pt-tools
    restart: unless-stopped

# 说明:
# - 将 ~/pt-data 挂载到 /app/.pt-tools 以持久化数据库与下载目录
# - 首次启动后打开浏览器访问 http://<ip>:8000,使用默认用户admin/adminadmin登录使用web页面进行设置。

⁠参数说明

参数/挂载点作用
/app/config/config.toml程序配置文件,需在宿主机创建并挂载到该路径
/app/.pt-tools程序工作目录,存放数据库等数据

⁠更新镜像

docker pull sunerpy/pt-tools:latest
docker stop pt-tools
docker rm pt-tools
# 重新以相同参数启动

⁠进入容器

docker exec -it pt-tools -- /bin/sh

更多使用细节请参阅项目 pt-tools⁠

Tag summary

Content type

Image

Digest

sha256:3d651954c…

Size

16.5 MB

Last updated

15 days ago

docker pull sunerpy/pt-tools