2026-01-08 17:02:33 +08:00
|
|
|
services:
|
|
|
|
|
aida_seg_anything:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
working_dir: /app
|
|
|
|
|
volumes:
|
|
|
|
|
- ./:/app
|
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
ports:
|
2026-01-08 17:11:24 +08:00
|
|
|
- "10075:8777"
|
2026-01-08 17:02:33 +08:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
reservations:
|
|
|
|
|
devices:
|
|
|
|
|
# 告诉 Docker 使用所有可用的 NVIDIA GPU
|
|
|
|
|
- driver: nvidia
|
2026-01-08 17:07:39 +08:00
|
|
|
device_ids: [ '1' ]
|
2026-01-08 17:02:33 +08:00
|
|
|
capabilities: [ gpu ]
|