Hello,
I want to use a traefic reverse proxy in my home server setup.
For that I want to have the administration UI, but I want not to expose it to the internet because of security concerns.
I want to access it via a ssh tunnel to my home server.
For that I have following setup. But it does not work. After tunneling via ssh to my server and visit localhost:8080 I don't see the panel.
traefics docker-compose.yml
services:
traefik:
image: traefik:latest
container_name: "traefik"
command:
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedByDefault=false"
- "--providers.docker.network=proxy-tier"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.email=dev@mydomain.de"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
labels:
- "traefik.enable=true"
- "traefik.http.routers.api-local.rule=Host(`localhost`)"
- "traefik.http.routers.api-local.entrypoints=web,websecure"
- "traefik.http.routers.api-local.service=api@internal"
# - "traefik.enable=true"
# - "traefik.http.routers.traefik.rule=Host(`traefik.mydomain.de`)"
# - "traefik.http.routers.traefik.entrypoints=websecure"
# - "traefik.http.routers.traefik.service=api@internal"
# - "traefik.http.routers.traefik.tls.certresolver=myresolver"
# - "traefik.http.routers.traefik.middlewares=traefik-auth"
networks:
- proxy-tier
- default
networks:
proxy-tier:
name: proxy-tier
external: true
After tunneling to my server via:
ssh -L localhost:8080:localhost:8080 myuser@myserver
And curl localhost:8080 I receive:
user@MacBook-Pro ~ % curl http://localhost:8080
curl: (52) Empty reply from server
user@MacBook-Pro ~ % curl https://localhost:8080
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:8080
user@MacBook-Pro ~ %
Does anybody have a hint how I could archive my goal?
T