make container names dynamic
This commit is contained in:
24
compose.yaml
24
compose.yaml
@@ -1,11 +1,11 @@
|
||||
|
||||
name: gpu-node
|
||||
name: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
|
||||
services:
|
||||
tailscale:
|
||||
image: tailscale/tailscale:latest
|
||||
|
||||
container_name: gpu-node-tailscale
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-tailscale
|
||||
hostname: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
|
||||
environment:
|
||||
@@ -14,8 +14,8 @@ services:
|
||||
TS_SERVE_CONFIG: /config/serve.json
|
||||
|
||||
volumes:
|
||||
- ./tailscale/state:/var/lib/tailscale
|
||||
- ./tailscale/config:/config:ro
|
||||
- ${HOST_PROJECT_PATH:-.}/tailscale/state:/var/lib/tailscale
|
||||
- ${HOST_PROJECT_PATH:-.}/tailscale/config:/config:ro
|
||||
|
||||
networks:
|
||||
- gpu-node
|
||||
@@ -27,7 +27,7 @@ services:
|
||||
build:
|
||||
context: ./ssh
|
||||
|
||||
container_name: gpu-node-ssh-main
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-ssh-main
|
||||
hostname: ssh-main
|
||||
|
||||
environment:
|
||||
@@ -52,7 +52,7 @@ services:
|
||||
build:
|
||||
context: ./ssh
|
||||
|
||||
container_name: gpu-node-ssh-companion
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-ssh-companion
|
||||
hostname: ssh-companion
|
||||
|
||||
environment:
|
||||
@@ -76,7 +76,7 @@ services:
|
||||
|
||||
image: rclone/rclone:latest
|
||||
|
||||
container_name: gpu-node-webdav
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-webdav
|
||||
hostname: webdav
|
||||
|
||||
command:
|
||||
@@ -106,7 +106,7 @@ services:
|
||||
build:
|
||||
context: ./gpu
|
||||
|
||||
container_name: gpu-node-gpu-test
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-gpu-test
|
||||
|
||||
gpus: all
|
||||
|
||||
@@ -123,7 +123,7 @@ services:
|
||||
build:
|
||||
context: ./model-worker
|
||||
|
||||
container_name: gpu-node-model-worker
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-model-worker
|
||||
|
||||
volumes:
|
||||
- ${HOST_PROJECT_PATH:-./}/gpu/comfy/models:/models
|
||||
@@ -141,7 +141,7 @@ services:
|
||||
|
||||
image: ghcr.io/ggml-org/llama.cpp:server-cuda
|
||||
|
||||
container_name: gpu-node-llama
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-llama
|
||||
|
||||
gpus: all
|
||||
|
||||
@@ -166,7 +166,7 @@ services:
|
||||
|
||||
image: mmartial/comfyui-nvidia-docker:latest
|
||||
|
||||
container_name: gpu-node-comfyui
|
||||
container_name: ${TAILSCALE_HOSTNAME:-gpu-node}-comfyui
|
||||
|
||||
init: true
|
||||
|
||||
@@ -192,4 +192,4 @@ services:
|
||||
|
||||
networks:
|
||||
gpu-node:
|
||||
name: gpu-node
|
||||
name: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
|
||||
Reference in New Issue
Block a user