马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
无脑操作,你需要做的就是把壁纸换成第一张nas预设壁纸,然后直接粘贴以下代码,部署即可,在5000端口可以管理壁纸源,默认即bing源,还内置了其他多个源,也能自定义壁纸源,欢迎使用,后期会考虑加入动态壁纸功能。
- services:
- ugpaper:
- image: gybeyond/ugpaper:latest
- container_name: ugpaper
- restart: unless-stopped
- ports:
- - "5001:5000"
- volumes:
- - /ugreen/wallpaper:/ugreen/wallpaper
- environment:
- - TZ=Asia/Shanghai
- command: >
- sh -c "
- apt-get update -qq &&
- apt-get install -y curl &&
- (
- while true; do
- curl -s -X POST -d 'action=download' http://127.0.0.1:5000/ > /dev/null 2>&1
- sleep 86400
- done
- ) &
- exec gunicorn --bind 0.0.0.0:5000 --workers 1 app:app
- "
- healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:5000/"]
- interval: 30s
- timeout: 10s
- retries: 3
- start_period: 20s
复制代码 |