This commit is contained in:
zyp
2026-11-18 16:01:50 +08:00
parent 0dc48ad092
commit 0c3d0c1ce4
30 changed files with 1525 additions and 93 deletions
+37
View File
@@ -0,0 +1,37 @@
name: company-ai-assistant
services:
assistant:
image: company-ai-assistant:local
pull_policy: never
init: true
restart: unless-stopped
environment:
APP_ENV: production
APP_MODE: work-assistant
DEBUG: "false"
API_PREFIX: /api/v1
WORK_ASSISTANT_STATE_URL: sqlite:///./data/work-assistant-state.db
TZ: Asia/Shanghai
ports:
- "${ASSISTANT_PORT:-8000}:8000"
volumes:
- ./assistant.env:/app/.env:ro
- ./data/checkpoints:/app/data
- ./data/jobs:/app/.private
stop_grace_period: 60s
healthcheck:
test:
- CMD
- python
- -c
- "import json,urllib.request; r=json.load(urllib.request.urlopen('http://127.0.0.1:8000/api/v1/health', timeout=3)); assert r['status']=='ok' and r['service']=='work-assistant'"
interval: 10s
timeout: 5s
retries: 6
start_period: 30s
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"