version: '3' services: reverse-proxy: # The official v3 Traefik docker image image: traefik:v3.0 # Enables the web UI and tells Traefik to listen to docker #network_mode: "host" networks: - web - default ports: # The HTTP port - "1080:80" - "1443:443" # The Web UI (enabled by --api.insecure=true) - "8088:8080" volumes: - /volume1/docker/traefik/conf/traefik.yml:/etc/traefik/traefik.yml - /volume1/docker/traefik/conf/rules.yaml:/etc/traefik/rules.yaml - /volume1/docker/traefik/acme:/etc/traefik/acme - /var/run/docker.sock:/var/run/docker.sock labels: - traefik.enable=true - traefik.http.routers.api.rule=Host(`huguettes.freeboxos.fr`) && Path(`/dashboard`) - traefik.http.routers.api.tls=true - traefik.http.routers.api.entrypoints=websecure - traefik.http.routers.api.tls.certResolver=myresolver - traefik.http.routers.api.service=dashboard@internal whoami: # A container that exposes an API to show its IP address image: traefik/whoami labels: labels: - traefik.http.routers.blog.rule=Host(`huguettes.freeboxos.fr`) && Path(`/whoami`) - traefik.http.routers.blog.tls=true - traefik.http.routers.blog.tls.certresolver=myresolver networks: web: external: true