#version: '3.5' services: aibot: container_name: ai-slibra-bot image: tiangolo/gunicorn:latest #entrypoint: python api/AiBot.py restart: always user: 0:0 environment: - CUDA_VISIBLE_DEVICES=0 - TZ=Asia/Shanghai # 设置时区 - SERVE_HOST=192.168.100.159 - VOICE_DIR=/root/aibot/dm/voice volumes: - /root/aibot/dm/ai-slibra-assistant:/home/model-server - /root/aibot/dm/voice:/home/model-server/voice ports: - "40072:40072" deploy: resources: reservations: devices: - driver: nvidia #count: 1 capabilities: [gpu] ipc: host command: ["/bin/sh", "-c", "cd api && python AiBot.py"]