From 7bedebd6547995dc8c271f9e997039f2cb09d011 Mon Sep 17 00:00:00 2001 From: simonhammes Date: Fri, 3 Oct 2025 14:24:04 +0200 Subject: [PATCH] Add --ipv6 flag to "docker network create" command --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 822fe36..421601c 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,13 @@ Every time a Docker object changes, the plugin updates the Caddyfile and trigger ## Basic usage example, using docker-compose ```shell -$ docker network create caddy +$ docker network create caddy --ipv6 ``` +> [!NOTE] +> The `--ipv6` flag instructs Docker to assign IPv6 addresses for all containers connected to this network. +> Without this flag, Caddy (as well as any upstream services) will see Docker's gateway IP address instead of the actual client IP addresses for IPv6 clients. + `caddy/docker-compose.yml` ```yml version: "3.7"