Moved mailu subnet configuration to defaults_networks

This commit is contained in:
Kevin Veen-Birkenbach 2025-02-03 15:10:03 +01:00
parent 83c84f6e86
commit b8d73f6b09
3 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@ defaults_networks:
ip6: "::01" # Change this in inventory to the ip address of your server ip6: "::01" # Change this in inventory to the ip address of your server
local: local:
mailu: mailu:
dns: 192.168.203.254 # Address of the Mailu DNS server dns: 192.168.203.254 # Address of the Mailu DNS server
subnet: 192.168.203.0/24 # Mailu Subnet

View File

@ -204,7 +204,7 @@ services:
ipam: ipam:
driver: default driver: default
config: config:
- subnet: {{applications.mailu.subnet}} - subnet: {{networks.local.mailu.subnet}}
radicale: radicale:
driver: bridge driver: bridge
webmail: webmail:

View File

@ -15,7 +15,7 @@ LD_PRELOAD=/usr/lib/libhardened_malloc.so
SECRET_KEY={{mailu_secret_key}} SECRET_KEY={{mailu_secret_key}}
# Subnet of the docker network. This should not conflict with any networks to which your system is connected. (Internal and external!) # Subnet of the docker network. This should not conflict with any networks to which your system is connected. (Internal and external!)
SUBNET={{applications.mailu.subnet}} SUBNET={{networks.local.mailu.subnet}}
# Main mail domain # Main mail domain
DOMAIN={{applications.mailu.domain}} DOMAIN={{applications.mailu.domain}}