-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-nvidia.yaml
More file actions
31 lines (30 loc) · 1.01 KB
/
docker-compose-nvidia.yaml
File metadata and controls
31 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: '3.8'
services:
comfyapi-nvidia:
build:
context: .
dockerfile: deployment/Dockerfile.local
args:
- GPU_TYPE=CUDA # Set to CUDA for NVIDIA GPUs
image: comfyapi-nvidia
container_name: comfyapi-nvidia
ports:
- "${APP_LISTEN_PORT:-8000}:${APP_LISTEN_PORT:-8000}"
- "${COMFYUI_LISTEN_PORT:-8001}:${COMFYUI_LISTEN_PORT:-8001}"
gpus: all
env_file:
- .env
environment:
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility
COMFYUI_INSTALL_PATH: '/app/ComfyUI'
COMFYUI_WORKSPACE_PATH: '/app/comfyui_workspace'
volumes:
- ${COMFYUI_WORKSPACE_PATH}:/app/comfyui_workspace
healthcheck:
test: [ "CMD-SHELL", "wget --spider --quiet http://${APP_LISTEN_ADDRESS:-0.0.0.0}:${APP_LISTEN_PORT:-8000}/docs || exit 1" ]
interval: 30s
timeout: 30s
retries: 3
start_period: 5s
command: uvicorn src.api.app:app --host ${APP_LISTEN_ADDRESS:-0.0.0.0} --port ${APP_LISTEN_PORT:-8000}