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:
x-common-config: &common-config
beszel-agent-docker1:
image: henrygd/beszel-agent:latest
restart: unless-stopped
ports:
- 45876:45876
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
deploy: &common-deploy
LISTEN: "45876"
deploy:
mode: replicated
replicas: 1
beszel-agent-docker1:
<<: *common-config
ports:
- 45876:45876
environment:
<<: *common-config.environment
LISTEN: '45876'
deploy:
<<: *common-deploy
placement:
constraints:
- node.hostname == docker1
beszel-agent-docker2:
<<: *common-config
image: henrygd/beszel-agent:latest
restart: unless-stopped
ports:
- 45877:45877
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
<<: *common-config.environment
LISTEN: '45877'
KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: "45877"
deploy:
<<: *common-deploy
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == docker2
beszel-agent-docker3:
<<: *common-config
image: henrygd/beszel-agent:latest
restart: unless-stopped
ports:
- 45878:45878
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
<<: *common-config.environment
LISTEN: '45878'
KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: "45878"
deploy:
<<: *common-deploy
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == docker3
beszel-agent-docker4:
<<: *common-config
image: henrygd/beszel-agent:latest
restart: unless-stopped
ports:
- 45879:45879
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
<<: *common-config.environment
LISTEN: '45879'
KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: "45879"
deploy:
<<: *common-deploy
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == docker4
beszel-agent-nas:
<<: *common-config
image: henrygd/beszel-agent:latest
restart: unless-stopped
ports:
- 45880:45880
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
<<: *common-config.environment
LISTEN: '45880'
KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: "45880"
deploy:
<<: *common-deploy
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == nas
beszel-agent-bruce:
<<: *common-config
image: henrygd/beszel-agent:latest
restart: unless-stopped
ports:
- 45881:45881
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
<<: *common-config.environment
LISTEN: '45881'
KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNx6yKSqJHUiSKTM44/A1luwBije9HkHwnOxwXYx8q4"
LISTEN: "45881"
deploy:
<<: *common-deploy
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == bruce