From a322cd6a3f542209bf8028c219ef27075004c0c4 Mon Sep 17 00:00:00 2001 From: SkyZeroZx <73321943+SkyZeroZx@users.noreply.github.com> Date: Sun, 31 Dec 2023 13:15:11 -0500 Subject: [PATCH 1/2] Update readme.md - Add example with docker compose --- readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/readme.md b/readme.md index d37ff435..2ac663c6 100644 --- a/readme.md +++ b/readme.md @@ -152,3 +152,15 @@ Building an image: docker pull ghcr.io/macbre/nginx-http3:latest DOCKER_BUILDKIT=1 docker build . -t macbre/nginx --cache-from=ghcr.io/macbre/nginx-http3:latest --progress=plain ``` + +Docker Compose example , it is necessary to expose through UDP as well as TCP to obtain HTTP/3 + +``` + nginx: + image: macbre/nginx-http3 + ports: + - '443:443/tcp' + - '443:443/udp' # use UDP for usage of HTTP/3 +``` + +Note : ports in TCP and UDP to expose HTTP/3 they must be the same \ No newline at end of file From 52ea9771cac4ff8ffc55fedc913c9f06a914c9cf Mon Sep 17 00:00:00 2001 From: Maciej Brencz Date: Mon, 11 Mar 2024 10:10:52 +0000 Subject: [PATCH 2/2] Small wording changes --- readme.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 2ac663c6..2e19e8a6 100644 --- a/readme.md +++ b/readme.md @@ -153,9 +153,11 @@ docker pull ghcr.io/macbre/nginx-http3:latest DOCKER_BUILDKIT=1 docker build . -t macbre/nginx --cache-from=ghcr.io/macbre/nginx-http3:latest --progress=plain ``` -Docker Compose example , it is necessary to expose through UDP as well as TCP to obtain HTTP/3 +### Docker Compose example -``` +It is necessary to expose both UDP and TCP ports to be able to HTTP/3 + +```yaml nginx: image: macbre/nginx-http3 ports: @@ -163,4 +165,4 @@ Docker Compose example , it is necessary to expose through UDP as well as TCP t - '443:443/udp' # use UDP for usage of HTTP/3 ``` -Note : ports in TCP and UDP to expose HTTP/3 they must be the same \ No newline at end of file +Note: both TCP and UDP HTTP/3 ports needs to be the same \ No newline at end of file