- 增加严格代理、两分钟预取、白名单去重与分组状态展示\n- 增加远端注册令牌和安全地址校验\n- 增加 Docker Compose、Caddy 示例与控制中心部署文档
35 lines
776 B
YAML
35 lines
776 B
YAML
name: douyu-control
|
|
|
|
services:
|
|
control-center:
|
|
image: ${DOUYU_CONTROL_IMAGE:-douyu-control:local}
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/control-center/Dockerfile
|
|
args:
|
|
GOPROXY: ${GOPROXY:-https://proxy.golang.org,direct}
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
DOUYU_CONTROL_ADDR: ":18080"
|
|
DOUYU_CONTROL_DATA: "/data"
|
|
TZ: "Asia/Shanghai"
|
|
ports:
|
|
- "127.0.0.1:${DOUYU_CONTROL_HOST_PORT:-18080}:18080"
|
|
volumes:
|
|
- ./data:/data
|
|
restart: unless-stopped
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
cap_drop:
|
|
- ALL
|
|
stop_grace_period: 20s
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "20m"
|
|
max-file: "3"
|