aliyundrive-subscribe
aliyundrive-subscribe copied to clipboard
docker-compose 怎么弄啊?
docker-compose 怎么弄啊?
version: "2" services: aliyundrive-subscribe: image: looby/aliyundrive-subscribe:latest container_name: alisub volumes: - /opt/apps/sub/conf:/app/conf #:左侧修改成自己的目录,在conf 目录下创建app.ini,app.ini 按照要求填写初始化信息就好 ports: - 8002:8002 restart: unless-stopped
1 停止 docker stop aliyundrive-subscribe 2 移除 docker rm aliyundrive-subscribe 3 拉取最新镜像 docker pull looby/aliyundrive-subscribe:latest 4 配置 app.ini 文件后 docker run -d --name aliyundrive-subscribe --restart always -p 8002:8002 -u 1000:1000 -v /etc/aliyundrive-subscribe/conf:/app/conf looby/aliyundrive-subscribe:latest 这步操作之前几个版本是ok的,现在出错了 2023/03/26 23:08:14 [31;1maliyundrive-subscribe/service/subscribe.go:25 [35;1mSQL logic error: table ali_subscribe has no column named share_pwd (1)
虽然是自问自答,起码我后来搞定了,我把成功的步骤贴这里吧 一键拉取更新 curl -s https://ghproxy.com/https://raw.githubusercontent.com/tyokantei/scripts/master/aliyundrive-subscribe.sh | bash 一键检查是否有更新 curl -s https://ghproxy.com/https://raw.githubusercontent.com/tyokantei/scripts/master/check_updatealiyun.sh | bash
手动配置 1 停止 docker stop aliyundrive-subscribe 2 移除 docker rm aliyundrive-subscribe 3 拉取最新镜像 docker pull looby/aliyundrive-subscribe:latest 4 docker run -d -p 8002:8002 -v /etc/aliyundrive-subscribe/conf:/app/conf --restart=always --name=aliyundrive-subscribe looby/aliyundrive-subscribe:latest 端口映射目录自己去配,app.ini 轻复制再 conf目录里面,配置内容参照作者首页,偷懒的,也可以用上面我改过的一键拉取配置后 IP:8002 admin admin 登录
更新的话,用watchtower更方便呢
补充一下默认格式,首页那个直接粘贴里面会报错,去页面修改
[app]
app-http-port = 8002
app-auth-user = admin
app-auth-pass = admin
# mysql root:pass@tcp(ip:port)/database?charset=utf8&parseTime=True&loc=Local
app-database = conf/data.db
app-check-interval = @every 1h
app-max-procs = 2
app-cache-dir = conf/cache
app-dingding-robot =
app-notify-hiflow = https://api.hiflow.tencent.com/engine/webhook/31/1597044003551531111
app-play-url = http://127.0.0.1:8002
app-check-delay = 0
[aliyundrive]
aliyundrive-refresh-token =
aliyundrive-root = root
aliyundrive-folders =
[aria2rpc]
aria2-rpc-url = http://10.0.1.14:6800/jsonrpc
aria2-rpc-secret = P3TERX
aria2-rpc-download-dir = /downloads
aria2-rpc-enable = false
[emby]
emby-server-url =
emby-server-token =
[plex]
plex-server-url =
plex-server-token =
[notify]
notify-send-url =
notify-send-body =
虽然是自问自答,起码我后来搞定了,我把成功的步骤贴这里吧 一键拉取更新 curl -s https://ghproxy.com/https://raw.githubusercontent.com/tyokantei/scripts/master/aliyundrive-subscribe.sh | bash 一键检查是否有更新 curl -s https://ghproxy.com/https://raw.githubusercontent.com/tyokantei/scripts/master/check_updatealiyun.sh | bash
手动配置 1 停止 docker stop aliyundrive-subscribe 2 移除 docker rm aliyundrive-subscribe 3 拉取最新镜像 docker pull looby/aliyundrive-subscribe:latest 4 docker run -d -p 8002:8002 -v /etc/aliyundrive-subscribe/conf:/app/conf --restart=always --name=aliyundrive-subscribe looby/aliyundrive-subscribe:latest 端口映射目录自己去配,app.ini 轻复制再 conf目录里面,配置内容参照作者首页,偷懒的,也可以用上面我改过的一键拉取配置后 IP:8002 admin admin 登录
感谢,用你的成功了!