This commit is contained in:
Mikan
2026-10-08 23:40:36 +04:00
parent b5060ddb8b
commit 4c5d35ebd4
4 changed files with 290 additions and 39 deletions

View File

@@ -3,8 +3,8 @@ name: gpu-node
services:
tailscale:
image: tailscale/tailscale:latest
container_name: gpu-node-tailscale
container_name: gpu-node-tailscale
hostname: ${TAILSCALE_HOSTNAME:-gpu-node}
environment:
@@ -21,37 +21,46 @@ services:
restart: always
ssh:
build:
context: ./ssh
container_name: gpu-node-ssh
hostname: ssh-operator
container_name: gpu-node-ssh-main
hostname: ssh-main
environment:
HOST_PROJECT_PATH: ${HOST_PROJECT_PATH}
SSH_ROLE: main
SSH_PORT: "22"
volumes:
- ${SSH_KEYS_HOST:-./ssh/authorized_keys}:/mounted-authorized-keys:ro
- /var/run/docker.sock:/var/run/docker.sock
- ./:/project
- ${HOST_PROJECT_PATH:-./}:/project
networks:
- gpu-node
restart: always
ssh-companion:
build:
context: ./ssh
container_name: gpu-node-ssh-companion
hostname: ssh-operator-companion
hostname: ssh-companion
environment:
HOST_PROJECT_PATH: ${HOST_PROJECT_PATH}
SSH_ROLE: companion
SSH_PORT: "2222"
volumes:
- ${SSH_KEYS_HOST:-./ssh/authorized_keys}:/mounted-authorized-keys:ro
- /var/run/docker.sock:/var/run/docker.sock
- ./:/project
- ${HOST_PROJECT_PATH:-./}:/project
networks:
- gpu-node
@@ -77,7 +86,7 @@ services:
- ${WEBDAV_PASS}
volumes:
- ${HOST_PROJECT_DIR:-./}:/data
- ${HOST_PROJECT_PATH:-./}:/data
networks:
- gpu-node
@@ -101,6 +110,7 @@ services:
restart: "no"
llama:
profiles:
- llama
@@ -125,6 +135,7 @@ services:
restart: "no"
comfyui:
profiles:
- comfy
@@ -138,8 +149,8 @@ services:
gpus: all
volumes:
- ./comfyui/run:/comfy/mnt
- ./gpu/comfy:/basedir
- ${COMFY_RUN_HOST:-./comfyui/run}:/comfy/mnt
- ${COMFY_BASE_HOST:-./gpu/comfy}:/basedir
environment:
USE_UV: "true"
@@ -154,6 +165,7 @@ services:
restart: "no"
networks:
gpu-node:
name: gpu-node