From 513129a50cfdaf1f2e1ef4edc7e15b056bef86ab Mon Sep 17 00:00:00 2001 From: Carol <947752894@qq.com> Date: Fri, 22 Sep 2023 09:20:34 +0800 Subject: [PATCH] Update readme.md update docker compose --- docker/readme.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/docker/readme.md b/docker/readme.md index c18713b..d814bea 100644 --- a/docker/readme.md +++ b/docker/readme.md @@ -47,6 +47,7 @@ docker run -d \ 新建`docker-compose.yaml`文件如下,并以命令`docker-compose up -d`启动。 +旧版 ``` version: "3" services: @@ -70,6 +71,69 @@ services: container_name: nas-tools ``` +新版 +```yaml +version: "3" + +services: + emby: + image: nastool/nas-tools:latest + container_name: nastool + restart: always + deploy: + resources: + limits: + memory: 1G + environment: + - UID=1026 + - GID=100 + - GIDLIST=100,101 + - TZ=Asia/Shanghai + - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium + - S6_SERVICES_GRACETIME=30000 + - S6_KILL_GRACETIME=60000 + - S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 + - S6_SYNC_DISKS=1 + - HOME=/nt + - TERM=xterm + - LANG=C.UTF-8 + - NASTOOL_CONFIG=/config/config.yaml + - NASTOOL_AUTO_UPDATE=false + - NASTOOL_CN_UPDATE=true + - NASTOOL_VERSION=master + - PS1="\u@\h:\w $ " + - REPO_URL=https://github.com/NAStool/nas-tools.git + - PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple + - ALPINE_MIRROR=mirrors.ustc.edu.cn + - PUID=0 + - PGID=0 + - UMASK=000 + - WORKDIR=/nas-tools + volumes: + - ./nastools/config:/config + - ./nastools/log:/log + - ./video:/video + ports: + - 3003:3000/TCP + network_mode: "bridge" + extra_hosts: + - "api.themoviedb.org:13.225.103.26" + - "api.themoviedb.org:13.35.166.108" + - "api.themoviedb.org:13.35.166.12" + - "www.themoviedb.org:13.35.166.63" + - "www.themoviedb.org:13.35.166.92" + - "www.themoviedb.org:54.192.18.100" + - "www.themoviedb.org:54.192.18.90" + - "www.themoviedb.org:99.86.199.8" + - "api.thetvdb.com:13.35.157.141" + - "image.tmdb.org:13.35.7.89" + - "image.tmdb.org:143.244.49.179" + - "image.tmdb.org:143.244.49.177" + - "image.tmdb.org:143.244.49.180" + - "image.tmdb.org:143.244.50.211" + - "emby.media:173.230.139.54" +``` + ## 后续如何更新 - 正常情况下,如果设置了`NASTOOL_AUTO_UPDATE=true`,重启容器即可自动更新nas-tools程序。