I have this traefik yaml config
version: "3.3"
services:
traefik:
image: "traefik:v2.11"
container_name: "traefik"
command:
- "--api.insecure=true" # Desactivar la interfaz API sin autenticación
- "--api.dashboard=true" # Activar el panel de control
- "--api.debug=true" # Activar el modo de depuración (opcional)
(reemplazar hashedpassword con la contraseña hasheada)
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.convert.address=:8081"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "443:443"
- "8080:8080"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefi`)"
#- "traefik.http.routers.traefik.tls=true"
- "traefik.http.routers.traefik.tls.certresolver=myresolver"
- "traefik.http.routers.traefik.entrypoints=websecure"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
- "traefik.http.middlewares.httpsonly.redirectscheme.scheme=https"
- "traefik.http.middlewares.httpsonly.redirectscheme.permanent=true"
- "traefik.http.routers.httpsonly.rule=HostRegexp(`{any:.*}`)"
- "traefik.http.routers.httpsonly.middlewares=httpsonly"
- "traefik.http.routers.traefik.middlewares=auth" # enable password auth
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- traefik-global-proxy
networks:
traefik-global-proxy:
name: "traefik-global-proxy"
and this config for one container that exposes port 80
version: "3.3"
services:
convert:
image: dwaaan/hrconvert2-docker:latest
restart: always
networks:
- traefik-global-proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.convert.rule=Host(`)"
- "traefik.http.services.convert.loadbalancer.server.port=80"
- "traefik.http.routers.convert.tls=true"
- "traefik.http.routers.convert.tls.certresolver=myresolver"
- "traefik.http.routers.convert.entrypoints=convert"
- "traefik.http.middlewares.convert.redirectscheme.scheme=https"
- "traefik.http.middlewares.convert.redirectscheme.permanent=true"
#- "traefik.http.routers.screen.rule=HostRegexp(`{any:.*}`)"
- "traefik.http.routers.convert.middlewares=httpsonly"
volumes:
- ./config.php:/var/www/html/HRProprietary/HRConvert2/config.php
networks:
traefik-global-proxy:
external: true
i dont know why but if i try to connect to url is not working. i have 3 more docker containers that work perfect. i think it could be because it uses port 80? how can i fix?
thanks