Skip to content

Commit b96dacc

Browse files
committed
Update README.md
1 parent be9c95d commit b96dacc

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,18 +567,27 @@ If you need additional Caddy plugins, or need to use a specific version of Caddy
567567
The main difference from the instructions on the official image is that you must override `CMD` to have the container run using the `caddy docker-proxy` command provided by this plugin.
568568

569569
```Dockerfile
570-
ARG CADDY_VERSION=2.5.0
570+
ARG CADDY_VERSION=2.6.1
571571
FROM caddy:${CADDY_VERSION}-builder AS builder
572572

573573
RUN xcaddy build \
574-
--with github.com/lucaslorentz/caddy-docker-proxy/plugin \
574+
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
575575
--with <additional-plugins>
576576

577577
FROM caddy:${CADDY_VERSION}-alpine
578578

579+
EXPOSE 80 443 2019
580+
581+
ENV XDG_CONFIG_HOME /config
582+
ENV XDG_DATA_HOME /data
583+
584+
RUN apk add -U --no-cache ca-certificates curl
585+
579586
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
580587

581-
CMD ["caddy", "docker-proxy"]
588+
ENTRYPOINT ["/bin/caddy"]
589+
590+
CMD ["docker-proxy"]
582591
```
583592

584593
## Connecting to Docker Host

0 commit comments

Comments
 (0)