1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- version: '3.5'
- services:
- devzhq:
- # --- building ---
- image: devzhq: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
- # networks:
- # - sri_network
- # ports:
- # - "39999:39999"
- network_mode: host
- # --- running ---
- container_name: devzhq
- 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
- #networks:
- # sri_network:
- # external: true
|