Full Beszel Compose file for all cases (Windows/Linux/Cloudflare or Docker Tunnel, etc) #674
Chinoman10
started this conversation in
Ideas
Replies: 1 comment
-
Thanks, lots of useful info here! I'll link this in the docs next time I update them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I've spent a few days troubleshooting why some things just wouldn't work... eventually gave up, and after sleeping on the subject a few times, I eventually got everything working as I wanted.
Here's my current scenario:
tunnel run
) which connects to all servers (within docker containers or not!);Now I'll explain how to get it running on different configs:
Dashboard & Agent on the same stack
Note: The 'main tunnel' (which exposes the local ports, or "punches the FW" if you will) isn't running on this stack.
In this case, the CF Tunnel is only needed if you wish to access your dashboard through the Internet, in which case it's a very simple/easy configuration to map your local 8090 port to https://example.com (your own domain).
If you don't already have a "tunnel server" that you can configure to add the dashboard, you can easily add one to your stack (just paste it below your existing
docker-compose.yml
, as a third service (dashboard (1), agent (2), tunnel (3)):Dashboard on Linux, Agent on Windows, using Cloudflare for both
cloudflared-windows-agent-tunnel-client
service is that tunnel client part.agent.exe
.host.docker.internal
as the host instead oflocalhost
or127.0.0.1
, otherwise you can ignore;--url
command argument: this is what your dashboard will need to connect to the agent; you can use the container's own IP address (which isn't great as it can change), or give it a network alias name (like I've done) instead; the port can be anything as long as it's available on your host (or wherever the dashboard+cf-tunnel-client stack is running).nssm install beszel-agent
, and a GUI will appear where you can configure the rest (program path, command arguments, service behaviours, etc.);Dashboard + Agent exposed via CF Tunnel (instead of Docker); can be separate hosts!
If you do not yet already have a Cloudflared "tunnel server"
portion above if you also need that (if you're running this stack on a completely new/empty host with no Cloudflare Tunnels already configured (for other apps/containers).alias
to make it more 'descriptive', since that's what will appear on the dashboard under the "Host's IP/name".depends_on
so the tunnel 'client' only launches after the agent; on next versions of this file, it would be nice to add a health-check as well, which would check if the chosen agent port is open (usenc
(netcat), for example), for example.Beta Was this translation helpful? Give feedback.
All reactions