120 lines
2.1 KiB
YAML
120 lines
2.1 KiB
YAML
name: gpu-node
|
|
|
|
services:
|
|
tailscale:
|
|
image: tailscale/tailscale:latest
|
|
container_name: gpu-node-tailscale
|
|
|
|
hostname: ${TAILSCALE_HOSTNAME:-gpu-node}
|
|
|
|
environment:
|
|
TS_AUTHKEY: ${TS_AUTHKEY}
|
|
TS_STATE_DIR: /var/lib/tailscale
|
|
TS_SERVE_CONFIG: /config/serve.json
|
|
|
|
volumes:
|
|
- ./tailscale/state:/var/lib/tailscale
|
|
- ./tailscale/config:/config:ro
|
|
|
|
networks:
|
|
- gpu-node
|
|
|
|
restart: unless-stopped
|
|
|
|
ssh:
|
|
build:
|
|
context: ./ssh
|
|
|
|
container_name: gpu-node-ssh
|
|
hostname: ssh-operator
|
|
|
|
volumes:
|
|
- ./ssh/authorized_keys:/mounted-authorized-keys:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./:/project:ro
|
|
|
|
networks:
|
|
- gpu-node
|
|
|
|
restart: unless-stopped
|
|
|
|
gpu-test:
|
|
profiles:
|
|
- test
|
|
|
|
build:
|
|
context: ./gpu
|
|
|
|
container_name: gpu-node-gpu-test
|
|
|
|
gpus: all
|
|
|
|
networks:
|
|
- gpu-node
|
|
|
|
restart: "no"
|
|
|
|
llama:
|
|
profiles:
|
|
- llama
|
|
|
|
image: ghcr.io/ggml-org/llama.cpp:server-cuda
|
|
|
|
container_name: gpu-node-llama
|
|
|
|
gpus: all
|
|
|
|
volumes:
|
|
- ${LLAMA_MODELS_HOST:-./gpu/llama_models}:/models
|
|
|
|
command: >
|
|
--host 0.0.0.0
|
|
--port 8080
|
|
--model /models/${LLAMA_MODEL:-model.gguf}
|
|
${LLAMA_EXTRA_ARGS:-}
|
|
|
|
networks:
|
|
- gpu-node
|
|
|
|
restart: "no"
|
|
|
|
comfyui:
|
|
profiles:
|
|
- comfy
|
|
|
|
build:
|
|
context: ./comfyui
|
|
image: gpu-node-comfyui:local
|
|
|
|
container_name: gpu-node-comfyui
|
|
|
|
init: true
|
|
|
|
gpus: all
|
|
|
|
ports:
|
|
- "8188:8188"
|
|
|
|
volumes:
|
|
- ${COMFY_BASE_HOST:-./gpu/comfy}/models:/opt/comfyui/models
|
|
- ${COMFY_BASE_HOST:-./gpu/comfy}/input:/opt/comfyui/input
|
|
- ${COMFY_BASE_HOST:-./gpu/comfy}/output:/opt/comfyui/output
|
|
- ${COMFY_BASE_HOST:-./gpu/comfy}/user:/opt/comfyui/user
|
|
- ${COMFY_BASE_HOST:-./gpu/comfy}/custom_nodes:/opt/comfyui/custom_nodes
|
|
|
|
environment:
|
|
USE_UV: "true"
|
|
WANTED_UID: "1000"
|
|
WANTED_GID: "1000"
|
|
SECURITY_LEVEL: "normal"
|
|
COMFY_CMDLINE_EXTRA: ${COMFY_EXTRA_ARGS:-}
|
|
|
|
|
|
networks:
|
|
- gpu-node
|
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
gpu-node:
|
|
name: gpu-node |