Files
lc_stylist_agent/docker-compose.yml

24 lines
578 B
YAML
Raw Normal View History

2025-10-24 10:37:19 +08:00
services:
lc_agent_server:
build:
context: .
dockerfile: Dockerfile
working_dir: /app
environment:
2025-10-24 16:34:20 +08:00
GOOGLE_APPLICATION_CREDENTIALS: /app/app/request.json
DEBUG: 0
2025-10-24 10:37:19 +08:00
volumes:
- ./app:/app/app
2025-10-24 05:19:08 +00:00
- ./.env:/app/.env
2025-10-24 16:34:20 +08:00
- ./db:/db
- /etc/localtime:/etc/localtime:ro
2025-10-24 10:37:19 +08:00
ports:
- "10070:8000"
deploy:
resources:
reservations:
devices:
# 告诉 Docker 使用所有可用的 NVIDIA GPU
- driver: nvidia
device_ids: ['0']
capabilities: [ gpu ]