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/datapgadmin:
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/pgadminlabels: - "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: truenetworks:
postgres:
external: true
traefik:
external: true
I have several services that work perfectly in portainer, but pgadmin is failing