build better ssh

This commit is contained in:
Mikan
2026-10-07 18:53:14 +04:00
parent f58824c95e
commit b5060ddb8b
2 changed files with 51 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ services:
hostname: ssh-operator
volumes:
- ./ssh/authorized_keys:/mounted-authorized-keys:ro
- ${SSH_KEYS_HOST:-./ssh/authorized_keys}:/mounted-authorized-keys:ro
- /var/run/docker.sock:/var/run/docker.sock
- ./:/project
@@ -38,6 +38,53 @@ services:
restart: always
ssh-companion:
build:
context: ./ssh
container_name: gpu-node-ssh-companion
hostname: ssh-operator-companion
environment:
SSH_PORT: "2222"
volumes:
- ${SSH_KEYS_HOST:-./ssh/authorized_keys}:/mounted-authorized-keys:ro
- /var/run/docker.sock:/var/run/docker.sock
- ./:/project
networks:
- gpu-node
restart: always
webdav:
image: rclone/rclone:latest
container_name: gpu-node-webdav
hostname: webdav
command:
- serve
- webdav
- /data
- --addr
- :8080
- --user
- ${WEBDAV_USER:-operator}
- --pass
- ${WEBDAV_PASS}
volumes:
- ${HOST_PROJECT_DIR:-./}:/data
networks:
- gpu-node
restart: always
gpu-test:
profiles:
- test
@@ -90,9 +137,6 @@ services:
gpus: all
ports:
- "8188:8188"
volumes:
- ./comfyui/run:/comfy/mnt
- ./gpu/comfy:/basedir