init: HAPI Hub Docker 部署 (Dockerfile + docker-compose + GHCR workflow)
Build and Push Docker Image to GHCR / build-and-push (push) Has been cancelled

This commit is contained in:
i
2026-05-20 15:14:09 +08:00
commit 94de06a832
6 changed files with 191 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
services:
hapi-hub:
build:
context: .
dockerfile: Dockerfile
container_name: hapi-hub
restart: unless-stopped
ports:
- "3006:3006"
volumes:
- ./hapi-data:/root/.hapi
environment:
- CLI_API_TOKEN=${CLI_API_TOKEN:?请设置 CLI_API_TOKEN 环境变量}
- HAPI_LISTEN_HOST=0.0.0.0
- HAPI_LISTEN_PORT=3006
- HAPI_PUBLIC_URL=${HAPI_PUBLIC_URL}
- CORS_ORIGINS=${CORS_ORIGINS:-*}
- TZ=${TZ:-Asia/Shanghai}