Traefik 3 + pdagmin

Hello, I have problems starting pgadmin4, it just gives me an error if I try to use Trafik 3, I share with you the docker compose + Trafik

postgres + pgadmin docker-compose.yaml

services:
postgres:
container_name: postgres
image: postgres:16.3-alpine3.20
command: [postgres, --max_connections=100]
environment:
- POSTGRES_DB=base_db
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
networks:
- postgres
volumes:
- postgres-data:/var/lib/postgresql/data

pgadmin:
image: dpage/pgadmin4:8.7
container_name: pg-admin
environment:
PGADMIN_DEFAULT_EMAIL: email@gmail.com
PGADMIN_DEFAULT_PASSWORD: pass
volumes:
- pgadmin-data:/var/lib/pgadmin

labels:
    - "traefik.enable=true"
    - "traefik.docker.network=traefik"
    - "traefik.http.routers.pgadmin.rule=Host(`pg.hostname.org`)"
    - "traefik.http.services.pgadmin.loadbalancer.server.port=80"
    - "traefik.http.routers.pgadmin.tls.certresolver=cloudflare"
    - "traefik.http.routers.pgadmin.entrypoints=https"
    - "traefik.http.routers.pgadmin.tls=true"
networks:
    - traefik
    - postgres  

volumes:
postgres-data:
external: true
pgadmin-data:
external: true

networks:
postgres:
external: true
traefik:
external: true

I have several services that work perfectly in portainer, but pgadmin is failing

That does not seem like a Traefik error, as those content type headers are usually not changed by Traefik.

Instead it is discussed on the source Github. Should be fixed, but not in current release?

I am using version 3.0.1, the error still persists

any temporary solution?

It seems to be an error of the target service

Try to downgrade that.

already tried with:

traefik:v3.0
traefik:v2.11.3
traefik:v2.10.7

pgadmin4:8.7
pgadmin4:8.6
pgadmin4:8.5
pgadmin4:8.1
pgadmin4:7.0

it still doesn't work