compose.yml 979 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. version: '3.5'
  2. services:
  3. devzw-scout-develop:
  4. # --- building ---
  5. image: devzw-scout-develop:2024
  6. build:
  7. context: ./
  8. dockerfile: ./Dockerfile
  9. environment:
  10. TZ: Asia/Shanghai
  11. LC_ALL: C.UTF-8
  12. LANG: C.UTF-8
  13. # --- binding ---
  14. runtime: nvidia
  15. ipc: host
  16. shm_size: 8g # 共享内存 默认64m
  17. volumes:
  18. - /media/nvidia/nvme0n1:/media/nvidia/nvme0n1
  19. - /dev:/dev
  20. network_mode: host
  21. # --- running ---
  22. container_name: devzw-scout-develop
  23. cap_add:
  24. - SYS_ADMIN
  25. privileged: true
  26. # --- for debug ---
  27. working_dir: /media/nvidia/nvme0n1
  28. stdin_open: true
  29. tty: true
  30. # --- for release ---
  31. # working_dir: /media/nvidia/nvme0n1/server/repositories/repositories/sri-project.demo-cpp
  32. # command: bash run.sh
  33. # restart: always