Files
heicode/docker-compose.yml
T
gongzhiyong a09d909dcd
Deploy VitePress Docs / build (push) Failing after 1m49s
Deploy VitePress Docs / deploy (push) Has been skipped
feat: rebrand to HeiCode and add dual-provider auth flow
Rebrand cc-haha to HeiCode and implement TaijiAICloud/ClawdRouter login foundations across server and desktop, including provider presets, model discovery endpoints, and login UI/store scaffolding for OAuth and token paste flows.
2026-04-29 19:08:06 +08:00

56 lines
1.7 KiB
YAML

# HeiCode docker stack
#
# Usage:
# docker compose up -d --build
# curl http://127.0.0.1:3456/health
# curl http://127.0.0.1:3456/api/heicode-auth/providers
#
# This compose joins the existing `new-api_new-api-network` so HeiCode can
# reach the local new-api gateway directly via http://new-api:3000
# (no need to expose new-api on the host LAN).
services:
heicode-server:
build:
context: .
dockerfile: Dockerfile
image: heicode-server:latest
container_name: heicode-server
restart: unless-stopped
ports:
- "3456:3456"
environment:
SERVER_PORT: "3456"
SERVER_HOST: "0.0.0.0"
# Auth on the *server* itself is off in dev so the desktop UI can talk
# to it without a bearer. Set to "1" in any non-trivial deployment.
SERVER_AUTH_REQUIRED: "0"
CLAUDE_CONFIG_DIR: "/data/.claude"
# When you want HeiCode to default to the local new-api gateway
# instead of TaijiAICloud / ClawdRouter, point ANTHROPIC_BASE_URL at
# the in-network address. The auth flow can override this at runtime.
# ANTHROPIC_BASE_URL: "http://new-api:3000"
# ANTHROPIC_AUTH_TOKEN: ""
volumes:
- heicode-data:/data
networks:
- default
- new-api-network
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://127.0.0.1:3456/health"]
interval: 15s
timeout: 5s
retries: 6
start_period: 20s
volumes:
heicode-data:
networks:
# `default` is automatic; we declare it only so we can list `new-api-network`
# alongside it without accidentally dropping the default.
default:
new-api-network:
external: true
name: new-api_new-api-network