docker-compose.yaml 660 B

12345678910111213141516171819202122232425
  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. volumes:
  13. - /root/aibot/dm/ai-slibra-assistant:/home/model-server
  14. - /root/aibot/dm/voice:/home/model-server/voice
  15. ports:
  16. - "40072:40072"
  17. deploy:
  18. resources:
  19. reservations:
  20. devices:
  21. - driver: nvidia
  22. #count: 1
  23. capabilities: [gpu]
  24. ipc: host
  25. command: ["/bin/sh", "-c", "cd api && python AiBot.py"]