Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portainer 404 page not found #331

Open
modparts opened this issue Jan 27, 2025 · 0 comments
Open

Portainer 404 page not found #331

modparts opened this issue Jan 27, 2025 · 0 comments

Comments

@modparts
Copy link

modparts commented Jan 27, 2025

Hello,

I have set up my docker stack with Traefik 3 & Authentik,
everything is working great only i can't access Portainer with portainer.mydomain.com,
i keep getting 404 page not found in my browser.
It works with IP-ADDRESS:9001 internally but not through the domain.

Can you please help me.

portainer.yml:

services:
  # Portainer - WebUI for Containers
  portainer:
    container_name: portainer
    image: portainer/portainer-ce:latest # Use portainer-ee if you have a Business Edition license key
    security_opt:
      - no-new-privileges:true
    restart: unless-stopped
    # profiles: ["core", "all"]
    networks:
      t3_proxy:
        ipv4_address: 192.168.90.240 # You can specify a static IP
      socket_proxy:
    # command: -H unix:///var/run/docker.sock # # Use Docker Socket Proxy instead for improved security
    command: -H tcp://socket-proxy:2375
    ports:
      - "$PORTAINER_PORT:9000"
    volumes:
      # - /var/run/docker.sock:/var/run/docker.sock:ro # # Use Docker Socket Proxy instead for improved security
      - $DOCKERDIR/appdata/portainer/data:/data # Change to local directory if you want to save/transfer config locally
    environment:
      - TZ=$TZ
    labels:
      - "traefik.enable=true"
      # HTTP Routers
      - "traefik.http.routers.portainer-rtr.entrypoints=websecure"
      - "traefik.http.routers.portainer-rtr.rule=Host(`portainer.$DOMAINNAME_1`)"
      - "traefik.http.routers.portainer-rtr.tls=true"
      # Middlewares
      #- "traefik.http.routers.portainer-rtr-bypass.middlewares=chain-no-auth@file"
      #- "traefik.http.routers.portainer-rtr.middlewares=chain-oauth@file"
      - "traefik.http.routers.portainer-rtr.middlewares=chain-authentik@file"
      # HTTP Services
      - "traefik.http.routers.portainer-rtr.service=portainer-svc"
      - "traefik.http.services.portainer-svc.loadbalancer.server.port=9000"


In the .env file  DOMAINNAME_1, PORTAINER_PORT & TZ are set correctly.
The cloudflare CNAME portainer is also created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant