update version information

This commit is contained in:
Eduardo Silva
2026-11-25 08:31:45 -03:00
parent c97c182c35
commit 543089b992
14 changed files with 159 additions and 20 deletions
+54 -6
View File
@@ -1,4 +1,3 @@
version: '3'
services:
cluster-node:
container_name: cluster-node
@@ -8,16 +7,19 @@ services:
dockerfile: Dockerfile-cluster_node
environment:
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE}
- COMPOSE_VERSION=c1b
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- TOKEN=${TOKEN}
volumes:
- cluster_node_wireguard:/etc/wireguard
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
- cluster_node_caddy_json:/caddy_json_export/
- cluster_node_caddy_certificates:/caddy_certificates/
ports:
# Ports for WireGuard instances.
- "51820-51839:51820-51839/udp"
# Different host ports, so the node can run on the same host as the development primary server
- "52820-52839:51820-51839/udp"
- "9080:80"
- "9443:443"
cap_add:
- NET_ADMIN
- SYS_MODULE
@@ -28,11 +30,57 @@ services:
cluster-node-dns:
container_name: cluster-node-dns
restart: unless-stopped
image: eduardosilva/wireguard_webadmin_dns:latest
build:
context: containers/dnsmasq
dockerfile: Dockerfile-dnsmasq
network_mode: "service:cluster-node"
environment:
- TZ=${TIMEZONE}
volumes:
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
depends_on:
- cluster-node
cluster-node-caddy:
container_name: cluster-node-caddy
restart: unless-stopped
build:
context: containers/caddy
dockerfile: Dockerfile-caddy
network_mode: "service:cluster-node"
environment:
- TZ=${TIMEZONE}
- CLUSTER_NODE=true
- AUTH_GATEWAY_INTERNAL_URL=http://cluster-node-auth-gateway:9091
volumes:
- cluster_node_caddy_json:/caddy_json_export/
- cluster_node_caddy_certificates:/caddy_certificates/:ro
- cluster_node_caddy_data:/data
- cluster_node_caddy_config:/config
depends_on:
- cluster-node
- cluster-node-auth-gateway
cluster-node-auth-gateway:
container_name: cluster-node-auth-gateway
restart: unless-stopped
build:
context: containers/auth-gateway
dockerfile: Dockerfile-auth-gateway
environment:
- TZ=${TIMEZONE}
- AUTH_GATEWAY_CONFIG_DIR=/caddy_json_export
- AUTH_GATEWAY_DATABASE_PATH=/data/auth-gateway.sqlite3
- AUTH_GATEWAY_SECURE_COOKIES=false
volumes:
- cluster_node_caddy_json:/caddy_json_export/
- cluster_node_auth_gateway_data:/data
volumes:
cluster_node_wireguard:
cluster_node_dnsmasq_conf:
cluster_node_caddy_json:
cluster_node_caddy_certificates:
cluster_node_caddy_data:
cluster_node_caddy_config:
cluster_node_auth_gateway_data:
+81
View File
@@ -0,0 +1,81 @@
# Cluster node with WireGuard and the App Gateway (Caddy + auth-gateway).
# For a VPN only node, use cluster_node.yml instead.
services:
cluster-node:
container_name: cluster-node
restart: unless-stopped
image: eduardosilva/wireguard-webadmin-cluster-node:latest
environment:
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- TOKEN=${TOKEN}
volumes:
- cluster_node_wireguard:/etc/wireguard
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
- cluster_node_caddy_json:/caddy_json_export/
- cluster_node_caddy_certificates:/caddy_certificates/
ports:
# Ports for WireGuard instances.
- "51820-51839:51820-51839/udp"
# Caddy shares the network of cluster-node, so its ports are published here
- "80:80"
- "443:443"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
cluster-node-dns:
container_name: cluster-node-dns
restart: unless-stopped
image: eduardosilva/wireguard_webadmin_dns:latest
# Shares the network of cluster-node, so DNS is answered directly on the WireGuard interfaces
network_mode: "service:cluster-node"
environment:
- TZ=${TIMEZONE}
volumes:
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
depends_on:
- cluster-node
cluster-node-caddy:
container_name: cluster-node-caddy
restart: unless-stopped
image: eduardosilva/wireguard_webadmin_caddy:latest
network_mode: "service:cluster-node"
environment:
- TZ=${TIMEZONE}
- CLUSTER_NODE=true
- AUTH_GATEWAY_INTERNAL_URL=http://cluster-node-auth-gateway:9091
volumes:
- cluster_node_caddy_json:/caddy_json_export/
- cluster_node_caddy_certificates:/caddy_certificates/:ro
- cluster_node_caddy_data:/data
- cluster_node_caddy_config:/config
depends_on:
- cluster-node
- cluster-node-auth-gateway
cluster-node-auth-gateway:
container_name: cluster-node-auth-gateway
restart: unless-stopped
image: eduardosilva/wireguard_webadmin_auth_gateway:latest
environment:
- TZ=${TIMEZONE}
- AUTH_GATEWAY_CONFIG_DIR=/caddy_json_export
- AUTH_GATEWAY_DATABASE_PATH=/data/auth-gateway.sqlite3
volumes:
- cluster_node_caddy_json:/caddy_json_export/
- cluster_node_auth_gateway_data:/data
volumes:
cluster_node_wireguard:
cluster_node_dnsmasq_conf:
cluster_node_caddy_json:
cluster_node_caddy_certificates:
cluster_node_caddy_data:
cluster_node_caddy_config:
cluster_node_auth_gateway_data:
+7 -3
View File
@@ -1,4 +1,4 @@
version: '3'
# Cluster node with WireGuard only. To also publish App Gateway applications, use cluster_node-gateway.yml instead.
services:
cluster-node:
container_name: cluster-node
@@ -6,8 +6,7 @@ services:
image: eduardosilva/wireguard-webadmin-cluster-node:latest
environment:
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE}
- COMPOSE_VERSION=c1b
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- TOKEN=${TOKEN}
volumes:
@@ -27,10 +26,15 @@ services:
container_name: cluster-node-dns
restart: unless-stopped
image: eduardosilva/wireguard_webadmin_dns:latest
# Shares the network of cluster-node, so DNS is answered directly on the WireGuard interfaces
network_mode: "service:cluster-node"
environment:
- TZ=${TIMEZONE}
volumes:
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
depends_on:
- cluster-node
volumes:
cluster_node_wireguard:
cluster_node_dnsmasq_conf:
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
if [[ "$COMPOSE_VERSION" != "c2a" ]]; then
if [[ "$COMPOSE_VERSION" != "d1a" ]]; then
echo "ERROR: Please upgrade your docker compose file. Exiting."
exit 1
fi
+4 -1
View File
@@ -7,7 +7,7 @@ services:
environment:
- SERVER_ADDRESS=${SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE}
- COMPOSE_VERSION=c2g
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- EXTRA_ALLOWED_HOSTS=${EXTRA_ALLOWED_HOSTS}
- WIREGUARD_STATUS_CACHE_ENABLED=${WIREGUARD_STATUS_CACHE_ENABLED}
@@ -24,6 +24,7 @@ services:
- app_secrets:/app_secrets/
- rrd_data:/rrd_data/
- caddy_json_export:/caddy_json_export/
- caddy_cert_export:/caddy_cert_export/:ro
ports:
# Do not directly expose the Django port to the internet, use the reverse proxy below instead
# - "127.0.0.1:8000:8000"
@@ -87,6 +88,7 @@ services:
volumes:
- static_volume:/static
- caddy_json_export:/caddy_json_export
- caddy_cert_export:/caddy_cert_export
- caddy_data:/data
- caddy_config:/config
network_mode: "service:wireguard-webadmin"
@@ -115,6 +117,7 @@ volumes:
app_secrets:
rrd_data:
caddy_json_export:
caddy_cert_export:
auth_gateway_data:
caddy_data:
caddy_config:
+4 -1
View File
@@ -9,7 +9,7 @@ services:
- SERVER_ADDRESS=${SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE}
- DEV_MODE=True
- COMPOSE_VERSION=c2g
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- EXTRA_ALLOWED_HOSTS=${EXTRA_ALLOWED_HOSTS}
- WIREGUARD_STATUS_CACHE_ENABLED=${WIREGUARD_STATUS_CACHE_ENABLED}
@@ -27,6 +27,7 @@ services:
- app_secrets:/app_secrets/
- rrd_data:/rrd_data/
- caddy_json_export:/caddy_json_export/
- caddy_cert_export:/caddy_cert_export/:ro
ports:
# Do not directly expose the Django port to the internet, use some kind of reverse proxy with SSL.
- "8000:8000"
@@ -99,6 +100,7 @@ services:
volumes:
- static_volume:/static
- caddy_json_export:/caddy_json_export
- caddy_cert_export:/caddy_cert_export
- caddy_data:/data
- caddy_config:/config
network_mode: "service:wireguard-webadmin"
@@ -130,6 +132,7 @@ volumes:
app_secrets:
rrd_data:
caddy_json_export:
caddy_cert_export:
auth_gateway_data:
caddy_data:
caddy_config:
+1 -1
View File
@@ -7,7 +7,7 @@ services:
environment:
- SERVER_ADDRESS=${SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE}
- COMPOSE_VERSION=c2g
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- EXTRA_ALLOWED_HOSTS=${EXTRA_ALLOWED_HOSTS}
- WIREGUARD_STATUS_CACHE_ENABLED=${WIREGUARD_STATUS_CACHE_ENABLED}
+1 -1
View File
@@ -2,7 +2,7 @@
set -e
if [[ "$COMPOSE_VERSION" != "c2g" ]]; then
if [[ "$COMPOSE_VERSION" != "d1a" ]]; then
echo "ERROR: Please upgrade your docker compose file. Exiting."
exit 1
fi
+1 -1
View File
@@ -7,7 +7,7 @@ services:
dockerfile: Dockerfile-cluster_node
environment:
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
- COMPOSE_VERSION=c2a
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- TOKEN=${TOKEN}
volumes:
+1 -1
View File
@@ -7,7 +7,7 @@ services:
image: eduardosilva/wireguard-webadmin-cluster-node:testing
environment:
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
- COMPOSE_VERSION=c2a
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- TOKEN=${TOKEN}
volumes:
+1 -1
View File
@@ -6,7 +6,7 @@ services:
image: eduardosilva/wireguard-webadmin-cluster-node:testing
environment:
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
- COMPOSE_VERSION=c2a
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- TOKEN=${TOKEN}
volumes:
+1 -1
View File
@@ -7,7 +7,7 @@ services:
environment:
- SERVER_ADDRESS=${SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE}
- COMPOSE_VERSION=c2g
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- EXTRA_ALLOWED_HOSTS=${EXTRA_ALLOWED_HOSTS}
- WIREGUARD_STATUS_CACHE_ENABLED=${WIREGUARD_STATUS_CACHE_ENABLED}
+1 -1
View File
@@ -9,7 +9,7 @@ services:
- SERVER_ADDRESS=${SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE}
- DEV_MODE=True
- COMPOSE_VERSION=c2g
- COMPOSE_VERSION=d1a
- TZ=${TIMEZONE}
- EXTRA_ALLOWED_HOSTS=${EXTRA_ALLOWED_HOSTS}
- WIREGUARD_STATUS_CACHE_ENABLED=${WIREGUARD_STATUS_CACHE_ENABLED}
+1 -1
View File
@@ -180,7 +180,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
WIREGUARD_WEBADMIN_VERSION = 9982
CLUSTER_WORKER_CURRENT_VERSION = 16
CLUSTER_WORKER_MINIMUM_VERSION = 12
CLUSTER_WORKER_MINIMUM_VERSION = 16
CADDY_ENABLED = os.getenv("CADDY_ENABLED", "false").lower() == "true"