Add network.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-02 23:25:07 +01:00
parent f734e7608b
commit f5bc79e636
3 changed files with 10 additions and 1 deletions

View file

@ -48,3 +48,6 @@ data_coop_website:
cryptohagen_website:
domain: "cryptohagen.dk"
mailu:
subnet: 192.168.203.0/24

View file

@ -1,5 +1,11 @@
---
- name: setup network for mailu
docker_network:
name: mailu
ipam_options:
subnet: "{{ mailu.subnet }}"
- name: create mailu volume folders
file:
name: "{{ mailu.volume_folder }}/{{ volume }}"

View file

@ -26,7 +26,7 @@ SECRET_KEY={{ mailu_secret_key }}
# PUBLIC_IPV6= ::1 (default: ::1)
# Subnet of the docker network. This should not conflict with any networks to which your system is connected. (Internal and external!)
SUBNET=192.168.203.0/24
SUBNET={{ mailu.subnet }}
# Main mail domain
DOMAIN=data.coop