From 79a241d334a48f720e05deb647cb2c07485638a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o?= <theo@le-filament.com> Date: Thu, 19 Jan 2023 17:10:19 +0100 Subject: [PATCH] feat: enable IPv6 --- templates/daemon.json.j2 | 4 ++++ templates/inverseproxy.yaml.j2 | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/templates/daemon.json.j2 b/templates/daemon.json.j2 index c068eda..7ae9e73 100644 --- a/templates/daemon.json.j2 +++ b/templates/daemon.json.j2 @@ -1,6 +1,10 @@ { + "experimental": true, "icc": false, + "ip6tables": true, "iptables" : true, + "ipv6": true, + "fixed-cidr-v6": "fd00::/64", "live-restore": true, "log-driver": "json-file", "log-opts": { diff --git a/templates/inverseproxy.yaml.j2 b/templates/inverseproxy.yaml.j2 index 81c6248..c78503f 100644 --- a/templates/inverseproxy.yaml.j2 +++ b/templates/inverseproxy.yaml.j2 @@ -6,6 +6,7 @@ services: environment: TZ: "{{ timezone }}" networks: + net46: {% if odoo_prod.extra_app is defined or odoo_nonprod_instances[0].extra_app is defined %} app: {% endif %} @@ -42,8 +43,10 @@ services: - logs:/var/log/traefik/:rw - ./traefik.toml:/etc/traefik/traefik.toml:ro ports: - - "80:80" - - "443:443" + - "0.0.0.0:80:80" + - "0.0.0.0:443:443" + - "[::]:80:80" + - "[::]:443:443" depends_on: - dockersocket restart: unless-stopped @@ -66,6 +69,14 @@ services: restart: unless-stopped networks: + net46: + name: net46 + enable_ipv6: true + ipam: + driver: default + config: + - subnet: fd01::/64 + gateway: fd01::1 {% if odoo_prod.extra_app is defined or odoo_nonprod_instances[0].extra_app is defined %} app: internal: true -- GitLab