Files
lc_stylist_agent/docker-compose.yml

26 lines
726 B
YAML
Raw Normal View History

2025-10-24 10:37:19 +08:00
services:
lc_agent_server:
2026-02-09 14:54:17 +08:00
container_name: LC_Agent_Server
2025-10-24 10:37:19 +08:00
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
2026-02-09 14:54:17 +08:00
- ./.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:
- "${SERVE_PORT}:8000"
deploy:
resources:
reservations:
devices:
# 告诉 Docker 使用所有可用的 NVIDIA GPU
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]