docker-compose.yml 449 B

123456789101112131415161718192021
  1. version: '2'
  2. services:
  3. layoutv2:
  4. hostname: layoutv2
  5. container_name: layoutv2
  6. restart: always
  7. image: registry.cn-hangzhou.aliyuncs.com/sxtest/layout:gpu
  8. privileged: true
  9. ipc: host
  10. tty: true
  11. working_dir: /workspace
  12. ports:
  13. - '4869:8080'
  14. - '4868:22'
  15. # volumes:
  16. # - ./:/workspace
  17. # deploy:
  18. # resources:
  19. # reservations:
  20. # devices:
  21. # - capabilities: [gpu]