update Docker configurations to use pre-built images and add development compose file

This commit is contained in:
Eduardo Silva
2026-01-01 10:23:53 -03:00
parent 00c46b94de
commit b7065177a7
3 changed files with 49 additions and 9 deletions

38
cluster_node-dev.yml Normal file
View File

@@ -0,0 +1,38 @@
version: '3'
services:
cluster-node:
container_name: cluster-node
restart: unless-stopped
build:
context: containers/cluster_node
dockerfile: Dockerfile-cluster_node
environment:
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE}
- COMPOSE_VERSION=03r
- TZ=${TIMEZONE}
- TOKEN=${TOKEN}
volumes:
- cluster_node_wireguard:/etc/wireguard
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
#ports:
# Ports for WireGuard instances.
#- "51820-51839:51820-51839/udp"
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
environment:
- TZ=${TIMEZONE}
volumes:
- cluster_node_dnsmasq_conf:/etc/dnsmasq/
volumes:
cluster_node_wireguard:
cluster_node_dnsmasq_conf:

View File

@@ -3,9 +3,7 @@ services:
cluster-node: cluster-node:
container_name: cluster-node container_name: cluster-node
restart: unless-stopped restart: unless-stopped
build: image: eduardosilva/wireguard-webadmin-cluster-node:latest
context: containers/cluster_node
dockerfile: Dockerfile-cluster_node
environment: environment:
- MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS} - MASTER_SERVER_ADDRESS=${MASTER_SERVER_ADDRESS}
- DEBUG_MODE=${DEBUG_MODE} - DEBUG_MODE=${DEBUG_MODE}
@@ -15,9 +13,9 @@ services:
volumes: volumes:
- cluster_node_wireguard:/etc/wireguard - cluster_node_wireguard:/etc/wireguard
- cluster_node_dnsmasq_conf:/etc/dnsmasq/ - 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"
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
- SYS_MODULE - SYS_MODULE
@@ -28,9 +26,7 @@ services:
cluster-node-dns: cluster-node-dns:
container_name: cluster-node-dns container_name: cluster-node-dns
restart: unless-stopped restart: unless-stopped
build: image: eduardosilva/wireguard_webadmin_dns:latest
context: ./containers/dnsmasq
dockerfile: Dockerfile-dnsmasq
environment: environment:
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
volumes: volumes:

View File

@@ -27,4 +27,10 @@ services:
image: eduardosilva/wireguard_webadmin_rrdtool:latest image: eduardosilva/wireguard_webadmin_rrdtool:latest
build: build:
context: ./containers/rrdtool context: ./containers/rrdtool
dockerfile: Dockerfile-rrdtool dockerfile: Dockerfile-rrdtool
wireguard-webadmin-cluster-node:
image: eduardosilva/wireguard-webadmin-cluster-node:latest
build:
context: ./containers/cluster_node
dockerfile: Dockerfile-cluster_node