cpa 天天更新,跟不上节奏又封号,这里做了个docker compose 每两个小时自动尝试更新
services:
cli-proxy-api:
image: eceasy/cli-proxy-api:latest
container_name: cli-proxy-api
restart: unless-stopped
ports:
- "8317:8317"
volumes:
- ./config.yaml:/CLIProxyAPI/config.yaml
- ./auth-dir:/root/.cli-proxy-api
labels:
- "com.centurylinklabs.watchtower.enable=true"
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
restart: unless-stopped
environment:
TZ: Asia/Shanghai
WATCHTOWER_SCHEDULE: "0 0 */2 * * *"
WATCHTOWER_CLEANUP: "true"
WATCHTOWER_LABEL_ENABLE: "true"
WATCHTOWER_ROLLING_RESTART: "true"
WATCHTOWER_TIMEOUT: "30s"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
5 个帖子 - 5 位参与者