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

Traefik proxy not proxying the container after latest update [v2.28.0] #3092

Closed
just5ky opened this issue Apr 2, 2024 · 10 comments
Closed

Comments

@just5ky
Copy link

just5ky commented Apr 2, 2024

Description

After the latest update, Traefik proxy is not proxying the container.

Traefik is exposing it properly when i rollback to v2.27.0

Expected behavior
Traefik proxy should detect the container to forward it to a Domain.

What is happening instead?
When I check from Traefik dashboard, it's not listing the container.

Additional context

Docker Compose

services:
  traefik:
    container_name: traefik
    image: traefik
    restart: unless-stopped
    networks:
      - proxy # rename this to your custom docker network
    ports:
      - target: 80
        published: 80
        protocol: tcp
        mode: host
      - target: 443
        published: 443
        protocol: tcp
        mode: host
      - 8080:8080 # Dashboard port
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro # ro = read-only access to the docker.sock
      - $DOCKERDIR/traefik/:/etc/traefik/
    environment:
      CF_DNS_API_TOKEN: $CLOUDFLARE_API_TOKEN
      TZ: $TZ
    extra_hosts:
      - "host.docker.internal:host-gateway"
    labels:
      traefik.http.routers.api.rule: Host(`traefik.$DOMAINNAME`) # Define the subdomain for the traefik dashboard.
      traefik.http.routers.api.entryPoints: https # Set the Traefik entry point.
      traefik.http.routers.api.service: api@internal # Enable Traefik API.
      traefik.http.routers.api.middlewares: auth@file
      traefik.enable: true # Enable Traefik reverse proxy for the Traefik dashboard.

  filebrowser:
    image: filebrowser/filebrowser   #v2.27.0
    container_name: filebrowser
    volumes:
      - "/:/srv"
      - $DOCKERDIR/filebrowser/filebrowser.db:/database.db
      - $DOCKERDIR/filebrowser/settings.json:/config/settings.json
    networks:
      - proxy
    ports:
      - "80:80"
    environment:
      - PUID=$PUID
      - PGID=$PGID
    restart: unless-stopped
    labels:
      traefik.enable: true
      traefik.http.routers.filebrowser.rule: Host(`file.$DOMAINNAME`)
      traefik.http.services.filebrowser.loadbalancer.server.port: 80
      traefik.http.routers.filebrowser.entryPoints: https
      traefik.http.routers.filebrowser.middlewares: auth@file

How to reproduce?
Use the latest version of filebrowser container with traefik proxy.

@2ndwonder
Copy link

I have the same issue 😕

@IvanLi-CN
Copy link

Me too, looking at the logs it looks like it's only listening on ipv6

Listening on [::]:80

@cerede2000
Copy link

Same issue !
I try to find during 1 hour why my filebrowser service not published to traefik and i see this topic !

@robled
Copy link

robled commented Apr 2, 2024

I noticed that the health check is failing when this happens:
Untitled

May be related to this commit.

@just5ky
Copy link
Author

just5ky commented Apr 2, 2024

Healthcheck issue #3085

@Zoremeth
Copy link

Zoremeth commented Apr 3, 2024

This may be not a fix.

However, for those needing it to work ASAP you can run the docker container with the flag --no-healthcheck.

This disables the health check entirely meaning traefik will pick it up again.

@MMartialis
Copy link

same issue. Had to return to previous version until fixed.

@CorySanin
Copy link

Healthcheck issue #3085

Yes, this is indeed a duplicate. #3087 should fix it.

@tgrothe
Copy link

tgrothe commented Apr 6, 2024

This may be not a fix.

However, for those needing it to work ASAP you can run the docker container with the flag --no-healthcheck.

This disables the health check entirely meaning traefik will pick it up again.

For docker compose, add:

healthcheck:
  disable: true

https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck

then call docker compose up -d again and filebrowser will run... (temporary workaround)

@just5ky
Copy link
Author

just5ky commented Apr 7, 2024

Closing since given solutions work and its going to be fixed in the next update

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

Successfully merging a pull request may close this issue.

9 participants