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:
|
2025-12-16 17:29:05 +08:00
|
|
|
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
|
2025-12-16 17:29:05 +08:00
|
|
|
- ./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:
|
2026-01-27 10:33:35 +08:00
|
|
|
- "${SERVE_PORT}:8000"
|
2025-11-21 14:42:26 +08:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
reservations:
|
|
|
|
|
devices:
|
|
|
|
|
# 告诉 Docker 使用所有可用的 NVIDIA GPU
|
|
|
|
|
- driver: nvidia
|
2025-12-16 17:29:05 +08:00
|
|
|
device_ids: [ '0' ]
|
2025-11-21 14:42:26 +08:00
|
|
|
capabilities: [ gpu ]
|