refactor cluster node configuration and add dnsmasq service

This commit is contained in:
Eduardo Silva
2025-12-31 17:08:21 -03:00
parent a7e874f76e
commit cd2d49a1c0

View File

@@ -1,7 +1,7 @@
version: '3'
services:
wireguard-webadmin-cluster-node:
container_name: wireguard-webadmin-cluster-node
cluster-node:
container_name: cluster-node
restart: unless-stopped
build:
context: containers/cluster_node
@@ -14,6 +14,7 @@ services:
- TOKEN=${TOKEN}
volumes:
- cluster_node_wireguard:/etc/wireguard
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
#ports:
# Ports for WireGuard instances.
#- "51820-51839:51820-51839/udp"
@@ -24,5 +25,16 @@ services:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
cluster-node-dns:
container_name: cluster-node-dns
restart: unless-stopped
build:
context: ./containers/dnsmasq
dockerfile: Dockerfile-dnsmasq
environment:
- TZ=${TIMEZONE}
volumes:
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
volumes:
cluster_node_wireguard:
cluster_node_dnsmasq_conf: