From ee775b72471fc3384c4795d3c36df0f921a69a48 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sun, 1 Oct 2023 17:39:21 +0200 Subject: [PATCH] Enable IPv6 for Caddy and Tor --- roles/docker_services/files/dockerd/daemon.json | 4 +++- roles/docker_services/tasks/services.yml | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/roles/docker_services/files/dockerd/daemon.json b/roles/docker_services/files/dockerd/daemon.json index 36360e8..9205107 100644 --- a/roles/docker_services/files/dockerd/daemon.json +++ b/roles/docker_services/files/dockerd/daemon.json @@ -4,5 +4,7 @@ "base": "172.17.0.0/16", "size": 24 } - ] + ], + "experimental": true, + "ip6tables": true } diff --git a/roles/docker_services/tasks/services.yml b/roles/docker_services/tasks/services.yml index 511ff3d..6d01583 100644 --- a/roles/docker_services/tasks/services.yml +++ b/roles/docker_services/tasks/services.yml @@ -3,11 +3,19 @@ - name: Create Docker network for services community.docker.docker_network: name: services + enable_ipv6: true + ipam_config: + - subnet: 172.17.2.0/24 + - subnet: fd02::/64 state: present - name: Create Docker network for Tor community.docker.docker_network: name: tor + enable_ipv6: true + ipam_config: + - subnet: 172.17.3.0/24 + - subnet: fd03::/64 state: present - name: Create base directory for Docker volumes