-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 1.08 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
# To update to the latest version:
# docker compose pull && docker compose up -d
# Or add to crontab for daily auto-update:
# 0 6 * * * cd /path/to/axon && docker compose pull && docker compose up -d
services:
axon:
image: wbj66/axon:latest
# 本地构建时取消注释下面这行并注释上面 image 行
# build: .
stdin_open: true
tty: true
restart: unless-stopped
# Chromium 需要足够的共享内存
shm_size: '2gb'
ports:
- "3456:3456"
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- AXON_WEB_HOST=0.0.0.0
- AXON_WEB_PORT=3456
- AXON_MODEL=${AXON_MODEL:-sonnet}
- PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
env_file:
- path: .env
required: false
volumes:
# 持久化会话、配置、笔记本
- ~/.axon:/root/.axon
# 映射当前目录为工作区,让 Axon 能读写你的文件
- .:/workspace
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3456/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s