labels
This commit is contained in:
84
compose.yaml
84
compose.yaml
@@ -1,84 +1,72 @@
|
||||
|
||||
name: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
|
||||
services:
|
||||
tailscale:
|
||||
image: tailscale/tailscale:latest
|
||||
|
||||
container_name: ${TAILSCALE_HOSTNAME:-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:
|
||||
- ${HOST_PROJECT_PATH:-.}/tailscale/state:/var/lib/tailscale
|
||||
- ${HOST_PROJECT_PATH:-.}/tailscale/config:/config:ro
|
||||
|
||||
networks:
|
||||
- gpu-node
|
||||
|
||||
restart: always
|
||||
|
||||
labels:
|
||||
- "node.role=tailscale"
|
||||
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
|
||||
|
||||
ssh:
|
||||
build:
|
||||
context: ./ssh
|
||||
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-ssh-main
|
||||
hostname: ssh-main
|
||||
|
||||
environment:
|
||||
HOST_PROJECT_PATH: ${HOST_PROJECT_PATH}
|
||||
SSH_ROLE: main
|
||||
SSH_PORT: "22"
|
||||
|
||||
NODE_INSTANCE: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ${HOST_PROJECT_PATH:-./}:/project
|
||||
|
||||
networks:
|
||||
- gpu-node
|
||||
|
||||
restart: always
|
||||
|
||||
labels:
|
||||
- "node.role=ssh-main"
|
||||
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
|
||||
|
||||
ssh-companion:
|
||||
profiles:
|
||||
- wake
|
||||
|
||||
build:
|
||||
context: ./ssh
|
||||
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-ssh-companion
|
||||
hostname: ssh-companion
|
||||
|
||||
environment:
|
||||
HOST_PROJECT_PATH: ${HOST_PROJECT_PATH}
|
||||
SSH_ROLE: companion
|
||||
SSH_PORT: "2222"
|
||||
|
||||
NODE_INSTANCE: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ${HOST_PROJECT_PATH:-./}:/project
|
||||
|
||||
networks:
|
||||
- gpu-node
|
||||
|
||||
restart: always
|
||||
|
||||
labels:
|
||||
- "node.role=ssh-companion"
|
||||
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
|
||||
|
||||
webdav:
|
||||
profiles:
|
||||
- wake
|
||||
|
||||
image: rclone/rclone:latest
|
||||
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-webdav
|
||||
hostname: webdav
|
||||
|
||||
command:
|
||||
- serve
|
||||
- webdav
|
||||
@@ -89,93 +77,75 @@ services:
|
||||
- ${WEBDAV_USER:-operator}
|
||||
- --pass
|
||||
- ${WEBDAV_PASS}
|
||||
|
||||
volumes:
|
||||
- ${HOST_PROJECT_PATH:-./}:/data
|
||||
|
||||
networks:
|
||||
- gpu-node
|
||||
|
||||
restart: always
|
||||
|
||||
labels:
|
||||
- "node.role=webdav"
|
||||
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
|
||||
|
||||
gpu-test:
|
||||
profiles:
|
||||
- test
|
||||
|
||||
build:
|
||||
context: ./gpu
|
||||
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-gpu-test
|
||||
|
||||
gpus: all
|
||||
|
||||
networks:
|
||||
- gpu-node
|
||||
|
||||
restart: "no"
|
||||
|
||||
labels:
|
||||
- "node.role=gpu-test"
|
||||
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
|
||||
|
||||
model-worker:
|
||||
profiles:
|
||||
- wake
|
||||
|
||||
build:
|
||||
context: ./model-worker
|
||||
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-model-worker
|
||||
|
||||
volumes:
|
||||
- ${HOST_PROJECT_PATH:-./}/gpu/comfy/models:/models
|
||||
- ${HOST_PROJECT_PATH:-./}/gpu/model-worker:/state
|
||||
|
||||
networks:
|
||||
- gpu-node
|
||||
|
||||
restart: always
|
||||
|
||||
labels:
|
||||
- "node.role=model-worker"
|
||||
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
|
||||
|
||||
llama:
|
||||
profiles:
|
||||
- llama
|
||||
|
||||
image: ghcr.io/ggml-org/llama.cpp:server-cuda
|
||||
|
||||
container_name: ${TAILSCALE_HOSTNAME:-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"
|
||||
|
||||
labels:
|
||||
- "node.role=llama"
|
||||
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
|
||||
|
||||
comfyui:
|
||||
profiles:
|
||||
- comfy
|
||||
|
||||
image: mmartial/comfyui-nvidia-docker:latest
|
||||
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-comfyui
|
||||
|
||||
init: true
|
||||
|
||||
gpus: all
|
||||
|
||||
volumes:
|
||||
- ${COMFY_RUN_HOST:-./comfyui/run}:/comfy/mnt
|
||||
- ${COMFY_BASE_HOST:-./gpu/comfy}:/basedir
|
||||
|
||||
environment:
|
||||
USE_UV: "true"
|
||||
WANTED_UID: "1000"
|
||||
@@ -183,13 +153,13 @@ services:
|
||||
BASE_DIRECTORY: "/basedir"
|
||||
SECURITY_LEVEL: "normal"
|
||||
COMFY_CMDLINE_EXTRA: ${COMFY_EXTRA_ARGS:-}
|
||||
|
||||
networks:
|
||||
- gpu-node
|
||||
|
||||
restart: "no"
|
||||
|
||||
labels:
|
||||
- "node.role=comfyui"
|
||||
- "node.instance=${TAILSCALE_HOSTNAME:-gpu-node}"
|
||||
|
||||
networks:
|
||||
gpu-node:
|
||||
name: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
name: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
Reference in New Issue
Block a user