-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# OpenClaw Docker Compose — 开箱即用部署
#
# 一键启动:docker compose up -d
# 管理面板:http://localhost:1420
# Gateway: ws://localhost:18789/ws
#
# 配置说明见 .env.example
services:
openclaw:
build:
context: .
dockerfile: full/Dockerfile
args:
OPENCLAW_SOURCE: ${OPENCLAW_SOURCE:-zh}
OPENCLAW_VERSION: ${OPENCLAW_VERSION:-latest}
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmmirror.com}
image: ghcr.io/qingchencloud/openclaw:latest
container_name: openclaw
restart: unless-stopped
ports:
- "${PANEL_PORT:-1420}:1420"
- "${GATEWAY_PORT:-18789}:18789"
volumes:
- openclaw-data:/root/.openclaw
environment:
- TZ=${TZ:-Asia/Shanghai}
- GATEWAY_PORT=18789
- PANEL_PORT=1420
# 模型渠道(可选,也可通过面板配置)
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL:-}
- CUSTOM_API_KEY=${CUSTOM_API_KEY:-}
- CUSTOM_BASE_URL=${CUSTOM_BASE_URL:-}
- CUSTOM_PROVIDER_NAME=${CUSTOM_PROVIDER_NAME:-}
- CUSTOM_MODEL_LIST=${CUSTOM_MODEL_LIST:-}
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:1420/"]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
volumes:
openclaw-data:
driver: local