This commit is contained in:
traveler 2025-06-20 12:05:41 -05:00
parent b657b25257
commit e2111e4c06

View file

@ -1,91 +1,105 @@
# version: "3.8"
services: services:
x-common-config: &common-config beszel-agent-docker1:
image: henrygd/beszel-agent:latest image: henrygd/beszel-agent:latest
restart: unless-stopped restart: unless-stopped
ports:
- 45876:45876
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4" KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
deploy: &common-deploy LISTEN: "45876"
deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
beszel-agent-docker1:
<<: *common-config
ports:
- 45876:45876
environment:
<<: *common-config.environment
LISTEN: '45876'
deploy:
<<: *common-deploy
placement: placement:
constraints: constraints:
- node.hostname == docker1 - node.hostname == docker1
beszel-agent-docker2: beszel-agent-docker2:
<<: *common-config image: henrygd/beszel-agent:latest
restart: unless-stopped
ports: ports:
- 45877:45877 - 45877:45877
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
<<: *common-config.environment KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: '45877' LISTEN: "45877"
deploy: deploy:
<<: *common-deploy mode: replicated
replicas: 1
placement: placement:
constraints: constraints:
- node.hostname == docker2 - node.hostname == docker2
beszel-agent-docker3: beszel-agent-docker3:
<<: *common-config image: henrygd/beszel-agent:latest
restart: unless-stopped
ports: ports:
- 45878:45878 - 45878:45878
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
<<: *common-config.environment KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: '45878' LISTEN: "45878"
deploy: deploy:
<<: *common-deploy mode: replicated
replicas: 1
placement: placement:
constraints: constraints:
- node.hostname == docker3 - node.hostname == docker3
beszel-agent-docker4: beszel-agent-docker4:
<<: *common-config image: henrygd/beszel-agent:latest
restart: unless-stopped
ports: ports:
- 45879:45879 - 45879:45879
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
<<: *common-config.environment KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: '45879' LISTEN: "45879"
deploy: deploy:
<<: *common-deploy mode: replicated
replicas: 1
placement: placement:
constraints: constraints:
- node.hostname == docker4 - node.hostname == docker4
beszel-agent-nas: beszel-agent-nas:
<<: *common-config image: henrygd/beszel-agent:latest
restart: unless-stopped
ports: ports:
- 45880:45880 - 45880:45880
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
<<: *common-config.environment KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: '45880' LISTEN: "45880"
deploy: deploy:
<<: *common-deploy mode: replicated
replicas: 1
placement: placement:
constraints: constraints:
- node.hostname == nas - node.hostname == nas
beszel-agent-bruce: beszel-agent-bruce:
<<: *common-config image: henrygd/beszel-agent:latest
restart: unless-stopped
ports: ports:
- 45881:45881 - 45881:45881
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
<<: *common-config.environment KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: '45881' LISTEN: "45881"
deploy: deploy:
<<: *common-deploy mode: replicated
replicas: 1
placement: placement:
constraints: constraints:
- node.hostname == bruce - node.hostname == bruce