aliyundrive-subscribe icon indicating copy to clipboard operation
aliyundrive-subscribe copied to clipboard

docker-compose 怎么弄啊?

Open KimsaiKwa opened this issue 2 years ago • 6 comments

docker-compose 怎么弄啊?

KimsaiKwa avatar Mar 23 '23 14:03 KimsaiKwa

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

lonelyice521 avatar Mar 25 '23 05:03 lonelyice521

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)

tyokantei avatar Mar 26 '23 15:03 tyokantei

虽然是自问自答,起码我后来搞定了,我把成功的步骤贴这里吧 一键拉取更新 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 登录

tyokantei avatar Mar 29 '23 10:03 tyokantei

更新的话,用watchtower更方便呢

wangrui1573 avatar Apr 07 '23 01:04 wangrui1573

补充一下默认格式,首页那个直接粘贴里面会报错,去页面修改

[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 =

chux1995 avatar May 21 '23 16:05 chux1995

虽然是自问自答,起码我后来搞定了,我把成功的步骤贴这里吧 一键拉取更新 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 登录

感谢,用你的成功了!

TownMarshal avatar Oct 16 '23 12:10 TownMarshal