docker-compose.yml 402 B

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