-
-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
ARG CADDY_VERSION=2.9.1
FROM caddy:${CADDY_VERSION}-builder AS builder
RUN xcaddy build \
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
--with github.com/mholt/caddy-l4=github.com/vnxme/caddy-l4@caddyfile
FROM caddy:${CADDY_VERSION}-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
CMD ["caddy", "docker-proxy"]
❯ cat Dockerfile
ARG CADDY_VERSION=2.9.1
FROM caddy:${CADDY_VERSION}-builder AS builder
RUN xcaddy build \
--with github.com/lucaslorentz/caddy-docker-proxy/v2 \
--with github.com/mholt/caddy-l4=github.com/vnxme/caddy-l4@caddyfile
FROM caddy:${CADDY_VERSION}-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
CMD ["caddy", "docker-proxy"]
I created an image by writing a Dockerfile as above.
What I want is for SSH connection requests to ssh.test.com to be forwarded to the port 22 of a specific container.
Currently, caddy-docker-proxy is configured as follows:
services:
caddy:
container_name: caddy
image: my/caddy-docker-proxy-l4
restart: unless-stopped
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
ports:
- 22:22
- 80:80
- 443:443
...
Metadata
Metadata
Assignees
Labels
No labels