- 版本号改为 1.0.0,classifier 改为 Production/Stable - README 状态说明改为正式版:遵循语义化版本,1.x 内配置与数据格式保持兼容 - 文档中的镜像版本示例改为 1.0.0 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
# 默认拉取 GitHub Actions 发布的镜像(ghcr.io/derrors/reelay,支持 amd64 / arm64)。
|
||
# 固定版本:在 .env 里写 REELAY_VERSION=<版本号>(如 1.0.0,见 GitHub Releases);不写时用 latest(最新正式版)。
|
||
# 从源码构建:docker compose -f compose.yaml -f compose.build.yaml up -d --build
|
||
services:
|
||
worker:
|
||
image: ghcr.io/derrors/reelay:${REELAY_VERSION:-latest}
|
||
init: true
|
||
restart: unless-stopped
|
||
# .env 只有部署参数,可以没有(见 .env.example)
|
||
env_file:
|
||
- path: .env
|
||
required: false
|
||
volumes:
|
||
# 数据库、配置、密钥、会话、115 凭证与日志都在这个数据卷里
|
||
- reelay-data:/app/data
|
||
# 外部扩展(只读)
|
||
- ./deploy/plugins:/app/data/plugins:ro
|
||
healthcheck:
|
||
test: ["CMD", "python", "-m", "reelay.core.health"]
|
||
interval: 15s
|
||
timeout: 5s
|
||
retries: 3
|
||
start_period: 60s
|
||
stop_grace_period: 120s
|
||
|
||
web:
|
||
image: ghcr.io/derrors/reelay:${REELAY_VERSION:-latest}
|
||
init: true
|
||
command: ["python", "-m", "reelay.web"]
|
||
restart: unless-stopped
|
||
env_file:
|
||
- path: .env
|
||
required: false
|
||
environment:
|
||
REELAY_WEB_HOST: 0.0.0.0
|
||
REELAY_WEB_PORT: "28080"
|
||
volumes:
|
||
- reelay-data:/app/data
|
||
- ./deploy/plugins:/app/data/plugins:ro
|
||
ports:
|
||
- "127.0.0.1:28080:28080"
|
||
healthcheck:
|
||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:28080/api/health', timeout=3).close()"]
|
||
interval: 15s
|
||
timeout: 5s
|
||
retries: 3
|
||
stop_grace_period: 120s
|
||
|
||
volumes:
|
||
reelay-data:
|