From e519ba666ac521b691a6c46736b68935945c8717 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 23 Nov 2026 11:19:29 -0300 Subject: [PATCH] improve cluster node compose and instructions --- templates/cluster/worker_details.html | 42 ++++++++++++++++++--------- testing-cluster_node-gateway.yml | 37 +++++++++++++++++++++-- testing-cluster_node.yml | 1 + 3 files changed, 64 insertions(+), 16 deletions(-) diff --git a/templates/cluster/worker_details.html b/templates/cluster/worker_details.html index ee0c770..9d0c326 100644 --- a/templates/cluster/worker_details.html +++ b/templates/cluster/worker_details.html @@ -130,10 +130,23 @@

{% trans 'Installation' %}

-

{% blocktrans trimmed %} - Copy cluster_node.yml (and cluster_node-gateway.yml to publish App Gateway applications) - from the project repository - to the worker, and create a .env file next to them: +

+ + +
+ +

1. {% blocktrans trimmed %} + Download the compose file from the + project repository + to an empty directory on the worker: + {% endblocktrans %}

+
+ +
wget -O cluster_node.yml https://raw.githubusercontent.com/eduardogsilva/wireguard_webadmin/main/cluster_node.yml
+
+ +

2. {% blocktrans trimmed %} + Create a .env file in the same directory: {% endblocktrans %}

@@ -142,20 +155,15 @@ TOKEN={{ worker.token }} TIMEZONE={{ time_zone }}
-

{% trans 'VPN only' %}

+

3. {% trans 'Start the worker:' %}

- -
docker compose -f cluster_node.yml up -d
-
- -

{% trans 'VPN and App Gateway' %}

-
- -
docker compose -f cluster_node.yml -f cluster_node-gateway.yml up -d
+ +
docker compose -f cluster_node.yml up -d
    -
  • {% trans 'To update, run docker compose pull followed by the same up -d command, always with every compose file of the worker.' %}
  • +
  • {% trans 'To update, run docker compose pull followed by the same up -d command.' %}
  • +
  • {% trans 'To switch between VPN only and VPN and App Gateway, download the other compose file to the same directory and start it with up -d --remove-orphans. The worker data is kept.' %}
  • {% trans 'Applications published by workers must use DNS validation or self-signed certificates: certificates are issued by this primary server and distributed to the workers.' %}
  • {% trans 'Publish the WireGuard ports (51820-51839/udp) and, with the App Gateway, ports 80 and 443 of the worker.' %}
@@ -166,6 +174,12 @@ TIMEZONE={{ time_zone }} {% block custom_page_scripts %}