docker-compose.yml 503 B

12345678910111213141516171819202122232425
  1. version: '3.8'
  2. services:
  3. backend:
  4. build: ./server
  5. restart: always
  6. ports:
  7. - 5000:5000
  8. volumes:
  9. - ./server/output:/app/output
  10. - ./server/config.yml:/app/config.yml
  11. - ./server/lemon_master:/app/lemon_master
  12. deploy:
  13. resources:
  14. reservations:
  15. devices:
  16. - driver: "nvidia"
  17. count: "all"
  18. capabilities: [ "gpu" ]
  19. networks:
  20. - ma-network
  21. tty: true
  22. networks:
  23. ma-network:
  24. driver: bridge