V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Pogbag
V2EX  ›  问与答

关于群晖自动内外网切换和 DOCKER 自动更新的问题请教

  •  
  •   Pogbag · 2021-08-17 09:43:53 +08:00 · 276 次点击
    这是一个创建于 1044 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1,NAS 已经开通了 DDNS 外网访问,我想在内网通过域名:端口访问 NAS,科学上网软件把我的域名识别为外国流量,每次都会转一圈,尝试修改过策略文件,但是每次订阅更新就覆盖掉,很烦。在路由器加了一条 host 也无效。

    2,如何自动更新 NAS 上的 docker 应用,目前是手动挨个更新。

    谢谢各位!
    4 条回复    2021-08-17 11:12:45 +08:00
    Kilerd
        1
    Kilerd  
       2021-08-17 10:33:04 +08:00   ❤️ 2
    第一个问题 应该就是你的路由写得有问题(

    第二个问题 https://github.com/containrrr/watchtower
    Pogbag
        2
    Pogbag  
    OP
       2021-08-17 10:46:10 +08:00
    @Kilerd watchtower 里面的这条命令是在计划任务里面执行吗?
    $ docker run -d \
    --name watchtower \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower
    totoro625
        3
    totoro625  
       2021-08-17 11:11:19 +08:00   ❤️ 1
    第一条 可以只更新服务器部分
    clash 用 proxy-providers
    ```
    proxy-providers:
    SUB:
    type: http
    url: https://examp.com/examp.yml
    interval: 7200
    path: ./Proxy/SUB.yaml
    health-check:
    enable: true
    interval: 300
    url: http://www.gstatic.com/generate_204
    proxy-groups:
    - name: SUB-s
    use:
    - SUB
    type: select
    url: http://www.gstatic.com/generate_204
    interval: 600
    ```

    surge 用 policy-path
    ```
    [Proxy Group]
    SUB = select, policy-path=https://examp.com/examp.yml, update-interval=21600
    ```
    Pogbag
        4
    Pogbag  
    OP
       2021-08-17 11:12:45 +08:00
    @totoro625 感谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1237 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:02 · PVG 02:02 · LAX 11:02 · JFK 14:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.