services: # 小爱机器人服务 bot: build: . container_name: wework-xiaoai-bot restart: unless-stopped volumes: - ./.env:/app/.env:ro - ./.mi.token:/app/.mi.token logging: driver: json-file options: max-size: "10m" max-file: "3" # Token 异地同步服务 (监听 42000 端口) sync-service: build: ./sync_service container_name: xiaoai-sync-service ports: - "42000:42000" volumes: - ./.mi.token:/data/.mi.token - /var/run/docker.sock:/var/run/docker.sock environment: - SYNC_SECRET_KEY=my_private_key_123 - BOT_CONTAINER_NAME=wework-xiaoai-bot restart: unless-stopped