Files
lc_stylist_agent/docker-compose.yml
2026-04-14 10:11:29 +08:00

32 lines
823 B
YAML

services:
lc_agent_server:
container_name: LC_Agent_Server
build:
context: .
dockerfile: Dockerfile
working_dir: /app
environment:
GOOGLE_APPLICATION_CREDENTIALS: /google_application_credentials.json
DEBUG: 0
volumes:
- ./app:/app/app
- ./.env:/app/.env
- ./data:/data
- ./google_application_credentials.json:/google_application_credentials.json
- /etc/localtime:/etc/localtime:ro
ports:
- "${SERVE_PORT}:8000"
deploy:
resources:
reservations:
devices:
# 告诉 Docker 使用所有可用的 NVIDIA GPU
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]
networks:
- lc_app_net
networks:
lc_app_net:
external: true
name: lc_app_net