build better ssh
This commit is contained in:
52
compose.yaml
52
compose.yaml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user