Skip to content

Commit

Permalink
make it possible to configure docker network ip ranges via ansible va…
Browse files Browse the repository at this point in the history
…riables
  • Loading branch information
bufanda committed Mar 31, 2023
1 parent 1d9fa29 commit c5d872c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions defaults/main/mailcow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@ mailcow__config_log_lines: 9999

# SOGo session timeout in minutes
mailcow__config_sogo_expire_session: 480

#ipv4 network base for docker network
mailcow__docker_network_ipv4: 172.22.1

#ipv6 ip range for docker network
mailcow__docker_network_ipv6: fd4d:6169:6c63:6f77::/64
3 changes: 3 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
docker-compose --project-name {{ mailcow__docker_compose_project_name }} up -d
args:
chdir: "{{ mailcow__install_path }}"
environment:
IPV4_NETWORK: "{{ mailcow__docker_network_ipv4 }}"
IPV6_NETWORK: "{{ mailcow__docker_network_ipv6 }}"
when: not mailcow_running.exists

- name: Update mailcow
Expand Down

0 comments on commit c5d872c

Please sign in to comment.