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"