mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-01-01 06:16:16 +00:00
refactor cluster node configuration and add dnsmasq service
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
wireguard-webadmin-cluster-node:
|
cluster-node:
|
||||||
container_name: wireguard-webadmin-cluster-node
|
container_name: cluster-node
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build:
|
build:
|
||||||
context: containers/cluster_node
|
context: containers/cluster_node
|
||||||
@@ -14,6 +14,7 @@ services:
|
|||||||
- TOKEN=${TOKEN}
|
- TOKEN=${TOKEN}
|
||||||
volumes:
|
volumes:
|
||||||
- cluster_node_wireguard:/etc/wireguard
|
- cluster_node_wireguard:/etc/wireguard
|
||||||
|
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
|
||||||
#ports:
|
#ports:
|
||||||
# Ports for WireGuard instances.
|
# Ports for WireGuard instances.
|
||||||
#- "51820-51839:51820-51839/udp"
|
#- "51820-51839:51820-51839/udp"
|
||||||
@@ -24,5 +25,16 @@ services:
|
|||||||
- net.ipv4.conf.all.src_valid_mark=1
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
- net.ipv4.ip_forward=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:
|
volumes:
|
||||||
cluster_node_wireguard:
|
cluster_node_wireguard:
|
||||||
|
cluster_node_dnsmasq_conf:
|
||||||
|
|||||||
Reference in New Issue
Block a user