docker-compose.yaml 734 B

123456789101112131415161718192021222324252627
  1. #version: '3.5'
  2. services:
  3. aibot:
  4. container_name: ai-slibra-bot
  5. image: tiangolo/gunicorn:latest
  6. #entrypoint: python api/AiBot.py
  7. restart: always
  8. user: 0:0
  9. environment:
  10. - CUDA_VISIBLE_DEVICES=0
  11. - TZ=Asia/Shanghai # 设置时区
  12. - SERVE_HOST=192.168.100.159
  13. - VOICE_DIR=/root/aibot/dm/voice
  14. volumes:
  15. - /root/aibot/dm/ai-slibra-assistant:/home/model-server
  16. - /root/aibot/dm/voice:/home/model-server/voice
  17. ports:
  18. - "40072:40072"
  19. deploy:
  20. resources:
  21. reservations:
  22. devices:
  23. - driver: nvidia
  24. #count: 1
  25. capabilities: [gpu]
  26. ipc: host
  27. command: ["/bin/sh", "-c", "cd api && python AiBot.py"]