Skip to content

Commit f27b9a8

Browse files
authored
Merge pull request #130 from SkyZeroZx/master
Update readme.md with example docker compose
2 parents 547443f + 52ea977 commit f27b9a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,17 @@ 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
157+
158+
It is necessary to expose both UDP and TCP ports to be able to HTTP/3
159+
160+
```yaml
161+
nginx:
162+
image: macbre/nginx-http3
163+
ports:
164+
- '443:443/tcp'
165+
- '443:443/udp' # use UDP for usage of HTTP/3
166+
```
167+
168+
Note: both TCP and UDP HTTP/3 ports needs to be the same

0 commit comments

Comments
 (0)