services:
traefik:
# The official v3 Traefik docker image
image: traefik:v3.2
container_name: "traefik"
# Enables the web UI and tells Traefik to listen to docker
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.file=true"
- "--providers.file.directory=/conf/traefik"
- "--providers.file.watch=true"
- "--entryPoints.web.address=:80"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entryPoints.websecure.address=:443"
- "--entrypoints.websecure.http.tls=true"
- "--configfile=/etc/treafik/traefik.yml"
ports:
# The HTTP port
- "80:80"
# The HTTPS port
- "443:443"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./dynamic-conf:/conf/traefik:ro"
networks:
testisolated:
ipv4_address: 192.168.1.38
networks:
testisolated:
name: testisolated
external: true
In my dynamic-conf
folder I have the config for traefik in traefik.yml
http:
routers:
traefik:
entryPoints:
#- "web"
- "websecure"
rule: "Host(`traefik.${DOMAIN}`)"
service: traefik
services:
traefik:
loadBalancer:
servers:
- url: "http://192.168.1.38:8080"
passHostHeader: true
http://traefik.home.arpa/ redirects to https as expected. However, this shows 404 page not found
.
I can access http://192.168.1.38:8080 and I see no errors.
Any help on what I missed?