beszel agents

This commit is contained in:
traveler 2025-06-20 12:01:38 -05:00
parent 1968a85b6d
commit b657b25257

91
beszel_agents.yaml Normal file
View file

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