12345678910111213141516171819202122232425262728293031323334353637383940 |
- version: '3.5'
- services:
- devzw-scout:
- # --- building ---
- image: devzw-scout:2024
- build:
- context: ./
- dockerfile: ./Dockerfile
- environment:
- TZ: Asia/Shanghai
- LC_ALL: C.UTF-8
- LANG: C.UTF-8
- # --- binding ---
- runtime: nvidia
- ipc: host
- shm_size: 8g # 共享内存 默认64m
- volumes:
- - /media/nvidia/nvme0n1:/media/nvidia/nvme0n1
- - /dev:/dev
- network_mode: host
- # --- running ---
- container_name: devzw-scout
- cap_add:
- - SYS_ADMIN
- privileged: true
- # --- for debug ---
- working_dir: /media/nvidia/nvme0n1
- stdin_open: true
- tty: true
- # --- for release ---
- # working_dir: /media/nvidia/nvme0n1/server/repositories/repositories/sri-project.demo-cpp
- # command: bash run.sh
- # restart: always
|