entryPoint "websecure" doesn't exist

Hi there.

It is like that I have tried with traefik 3.0 version to get it up and running. But it is like that when I have to use my frontend in nextjs or c# backend. Then it states both places "entryPoint "websecure" doesn't exist" and "no valid entryPoint for this router" I've tried searching but I can't find any information about this.

Can someone explain to me what is going wrong?

version: '3.9'
services:
  frontend:
    container_name: "frontend"
    image: frontend:1.0
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.frontend.rule=Host(`app.local`)"
      - "traefik.http.routers.frontend.entrypoints=websecure"
      - "traefik.http.routers.frontend.tls=true"
    build:
      context: ./frontend
      dockerfile: Dockerfile
    ports:
      - "3000:3000"
    depends_on:
      - backend
      - traefik

  backend:
    container_name: "backend"
    image: backend:1.0
    build:
      context: ./backend
      dockerfile: Dockerfile
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.backend.rule=(Host(`app.local`) && PathPrefix(`/api`))"
      - "traefik.http.routers.backend.entrypoints=websecure"
      - "traefik.http.routers.backend.tls=true"
    ports:
      - "8181:8080"
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
    depends_on:
      - traefik
    
  traefik:
    image: "traefik:v3.0"
    container_name: "traefik"
    command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - --log=true
      - --log.level=WARN # (Default: error) DEBUG, INFO, WARN, ERROR, FATAL, PANIC
      - --accessLog=true
      - --accessLog.filePath=/traefik.log
      - --accessLog.bufferingSize=100 # Configuring a buffer of 100 lines
      - --accessLog.filters.statusCodes=400-499
    ports:
      - 80:80
      - 8080:8080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    

The error is kind of self explanatory, check simple Traefik example.

I have try to update my code. U can see here. But i have error. But Why? I cant not see what the problem are?

version: '3.9'
services:
  frontend:
    container_name: "frontend"
    image: frontend:1.0
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.frontend.rule=Host(`app.local`)"
      - "traefik.http.routers.frontend.entrypoints=websecure"
      - "traefik.http.routers.frontend.tls=true"
    build:
      context: ./frontend
      dockerfile: Dockerfile
    networks:
      - proxy
    ports:
      - "3000:3000"
    depends_on:
      - backend
      - traefik

  backend:
    container_name: "backend"
    image: backend:1.0
    build:
      context: ./backend
      dockerfile: Dockerfile
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.backend.rule=(Host(`app.local`) && PathPrefix(`/api`))"
      - "traefik.http.routers.backend.entrypoints=websecure"
      - "traefik.http.routers.backend.tls=true"
    ports:
      - "8181:8080"
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
    depends_on:
      - traefik
    networks:
      - proxy
    
  traefik:
    image: "traefik:v3.0"
    container_name: "traefik"
    networks:
      - proxy
    command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - --log=true
      - --log.level=WARN # (Default: error) DEBUG, INFO, WARN, ERROR, FATAL, PANIC
      - --accessLog=true
      - --accessLog.filePath=/traefik.log
      - --accessLog.bufferingSize=100 # Configuring a buffer of 100 lines
      - --accessLog.filters.statusCodes=400-499
    ports:
      - 80:80
      - 8080:8080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    
    
networks:
  proxy:
    name: proxy

You need to define Traefik entrypoints in static config. Note you can only use traefik.yml or compose command:, not both, decide for one.

1 Like