Skip to content

Commit a322cd6

Browse files
committed
Update readme.md
- Add example with docker compose
1 parent 547443f commit a322cd6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,15 @@ Building an image:
152152
docker pull ghcr.io/macbre/nginx-http3:latest
153153
DOCKER_BUILDKIT=1 docker build . -t macbre/nginx --cache-from=ghcr.io/macbre/nginx-http3:latest --progress=plain
154154
```
155+
156+
Docker Compose example , it is necessary to expose through UDP as well as TCP to obtain HTTP/3
157+
158+
```
159+
nginx:
160+
image: macbre/nginx-http3
161+
ports:
162+
- '443:443/tcp'
163+
- '443:443/udp' # use UDP for usage of HTTP/3
164+
```
165+
166+
Note : ports in TCP and UDP to expose HTTP/3 they must be the same

0 commit comments

Comments
 (0)