Files
lc_stylist_agent/docker-compose.yml

25 lines
687 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:
GOOGLE_APPLICATION_CREDENTIALS: /google_application_credentials.json
2025-10-24 16:34:20 +08:00
DEBUG: 0
2025-10-24 10:37:19 +08:00
volumes:
- ./app:/app/app
- ./.prod_env:/app/.env
- ./data:/data
- ./google_application_credentials.json:/google_application_credentials.json
2025-10-24 16:34:20 +08:00
- /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 ]