2025-12-30 16:33:51 -03:00
|
|
|
version: '3'
|
|
|
|
|
services:
|
2025-12-31 17:08:21 -03:00
|
|
|
cluster-node:
|
|
|
|
|
container_name: cluster-node
|
2025-12-30 16:33:51 -03:00
|
|
|
restart: unless-stopped
|
2026-01-01 10:23:53 -03:00
|
|
|
image: eduardosilva/wireguard-webadmin-cluster-node:latest
|
2025-12-30 16:33:51 -03:00
|
|
|
environment:
|
|
|
|
|
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
|
|
|
|
|
- DEBUG_MODE=${DEBUG_MODE}
|
|
|
|
|
- COMPOSE_VERSION=03r
|
|
|
|
|
- TZ=${TIMEZONE}
|
|
|
|
|
- TOKEN=${TOKEN}
|
|
|
|
|
volumes:
|
|
|
|
|
- cluster_node_wireguard:/etc/wireguard
|
2025-12-31 17:08:21 -03:00
|
|
|
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
|
2026-01-01 10:23:53 -03:00
|
|
|
ports:
|
2025-12-30 16:33:51 -03:00
|
|
|
# Ports for WireGuard instances.
|
2026-01-01 10:23:53 -03:00
|
|
|
- "51820-51839:51820-51839/udp"
|
2025-12-30 16:33:51 -03:00
|
|
|
cap_add:
|
|
|
|
|
- NET_ADMIN
|
|
|
|
|
- SYS_MODULE
|
|
|
|
|
sysctls:
|
|
|
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
|
|
|
- net.ipv4.ip_forward=1
|
|
|
|
|
|
2025-12-31 17:08:21 -03:00
|
|
|
cluster-node-dns:
|
|
|
|
|
container_name: cluster-node-dns
|
|
|
|
|
restart: unless-stopped
|
2026-01-01 10:23:53 -03:00
|
|
|
image: eduardosilva/wireguard_webadmin_dns:latest
|
2025-12-31 17:08:21 -03:00
|
|
|
environment:
|
|
|
|
|
- TZ=${TIMEZONE}
|
|
|
|
|
volumes:
|
|
|
|
|
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
|
2025-12-30 16:33:51 -03:00
|
|
|
volumes:
|
|
|
|
|
cluster_node_wireguard:
|
2025-12-31 17:08:21 -03:00
|
|
|
cluster_node_dnsmasq_conf:
|