Skip to content

hetaoos/Cloud189Checkin

Repository files navigation

Cloud189Checkin

天翼云盘自动签到服务

配置说明

编辑 appsettings.json 文件内的以下配置

{
  "Config": {
    "Times": [ "07:10:00", "22:30:00" ],
    "Accounts": [
      {
        "Enable": true,
        "UserName": "13800138000",
        "Password": "p@ssw0rd"
      }
    ]
  }
}

安装docker-compose

  • docker-compose官网安装教程
  • 默认centos7 yum install docker-compose为1.18.0版本;当运行docker-compose up -d会提示版本不匹配(docker-compose.yml "3.7")

以Linux为例

要安装不同版本的 Compose,请替换1.29.2 为您要使用的 Compose 版本。

  1. 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
  2. sudo chmod +x /usr/local/bin/docker-compose
  3. sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
  4. docker-compose --version
[root@build Cloud189Checkin]# docker-compose --version
docker-compose version 1.29.2, build 5becea4c

字段说明:

  • Times 执行签到时间列表,"07:10:00" 表示在 7点10分执行一次,秒部分无效,但不能省略。
  • Accounts 账号列表,

Docker 部署

创建目录

mkdir Cloud189Checkin/Cookies -p && cd Cloud189Checkin

创建 appsettings.json 配置文件

{
  "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"
    }
  }
}

创建 docker-compose.yaml 配置文件

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

About

天翼云盘自动签到服务

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published