Files
mineru-rocm/docker/docker-compose.yml
T

39 lines
1.1 KiB
YAML
Raw Normal View History

2026-06-03 15:39:09 +08:00
# =============================================================================
# MinerU ROCm Docker Compose 配置
# 原生 Linux + AMD GPU 环境
# =============================================================================
services:
mineru:
image: mineru-rocm:7.2.1
build:
context: .
dockerfile: Dockerfile
2026-06-05 13:35:14 +08:00
network: host
2026-06-03 15:39:09 +08:00
args:
ARCH: gfx1201
2026-06-05 13:35:14 +08:00
GIT_PROXY: http://127.0.0.1:8118
2026-06-03 15:39:09 +08:00
container_name: mineru-rocm
stdin_open: true
tty: true
2026-06-05 13:35:14 +08:00
ipc: host
2026-06-03 15:39:09 +08:00
devices:
2026-06-05 13:35:14 +08:00
- /dev/kfd
- /dev/dri
2026-06-03 15:39:09 +08:00
security_opt:
2026-06-05 13:35:14 +08:00
- seccomp=unconfined
2026-06-03 15:39:09 +08:00
group_add:
2026-06-05 13:35:14 +08:00
- video
- render
2026-06-03 15:39:09 +08:00
environment:
- MINERU_MODEL_SOURCE=${MINERU_MODEL_SOURCE:-huggingface}
- HF_HUB_CACHE=${HF_HUB_CACHE:-/opt/models/huggingface}
- MODELSCOPE_CACHE=${MODELSCOPE_CACHE:-/opt/models/modelscope}
volumes:
- ${INPUT_DIR:-./data/input}:/data/input:ro
- ${OUTPUT_DIR:-./data/output}:/data/output
- ${MODEL_DIR:-./data/models}:/opt/models
- ${MIOPEN_CACHE:-./data/miopen}:/root/.cache/miopen
command: bash
restart: "no"