天翼云盘自动签到服务
编辑 appsettings.json
文件内的以下配置
{
"Config": {
"Times": [ "07:10:00", "22:30:00" ],
"Accounts": [
{
"Enable": true,
"UserName": "13800138000",
"Password": "p@ssw0rd"
}
]
}
}
- docker-compose官网安装教程
- 默认centos7
yum install docker-compose
为1.18.0版本;当运行docker-compose up -d
会提示版本不匹配(docker-compose.yml "3.7")
要安装不同版本的 Compose,请替换1.29.2 为您要使用的 Compose 版本。
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
[root@build Cloud189Checkin]# docker-compose --version
docker-compose version 1.29.2, build 5becea4c
字段说明:
Times
执行签到时间列表,"07:10:00"
表示在 7点10分执行一次,秒部分无效,但不能省略。Accounts
账号列表,
mkdir Cloud189Checkin/Cookies -p && cd Cloud189Checkin
{
"Config": {
"Times": [ "07:10:00", "22:30:00" ],
"Accounts": [
{
"UserName": "189xxxx",
"Password": "p@ssw0rd"
}
]
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning",
"Hangfire": "Warning"
}
}
}
version: '3.7'
services:
cloud189checkin:
image: hetaoos/cloud189checkin:latest
container_name: cloud189checkin
restart: always
network_mode: bridge
volumes:
- ./Cookies:/app/Cookies
- ./appsettings.json:/app/appsettings.json
docker-compose up -d