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

Console bug with external Traefik proxy #876

Open
vasyakrg opened this issue Jan 22, 2025 · 1 comment
Open

Console bug with external Traefik proxy #876

vasyakrg opened this issue Jan 22, 2025 · 1 comment

Comments

@vasyakrg
Copy link

vasyakrg commented Jan 22, 2025

Bug description

We have traefik on the host machine, run the application and specify labels with two separate connection points.
we get this error on some tabs:

  1. /settings/general
Image
  1. /settings/projects
Image

On other tabs it seems to work and even clusters are created

Expected behavior

Here, for example, everything is correct and there are no errors

Image

Steps to reproduce

docker-compose yaml

services:
  pg-console:
    image: vitabaks/postgresql_cluster_console:latest
    container_name: pg-console
    restart: unless-stopped
    labels:
      - "traefik.enable=true"

      - "traefik.http.routers.pg-console-web.rule=Host(`${DOMAIN}`)"
      - "traefik.http.routers.pg-console-web.entrypoints=https"
      - "traefik.http.routers.pg-console-web.service=pg-console-web"
      - "traefik.http.routers.pg-console-web.tls=true"
      - "traefik.http.routers.pg-console-web.tls.certresolver=letsEncrypt"
      - "traefik.http.services.pg-console-web.loadbalancer.server.port=80"

      - "traefik.http.routers.pg-console-api.rule=Host(`${DOMAIN}`) && PathPrefix(`/api/v1`)"
      - "traefik.http.routers.pg-console-api.entrypoints=https"
      - "traefik.http.routers.pg-console-api.service=pg-console-api"
      - "traefik.http.routers.pg-console-api.tls=true"
      - "traefik.http.routers.pg-console-api.tls.certresolver=letsEncrypt"
      - "traefik.http.services.pg-console-api.loadbalancer.server.port=8080"
      - "traefik.docker.network=webproxy"
    environment:
      - PG_CONSOLE_API_URL=${PG_CONSOLE_API_URL}
      - PG_CONSOLE_AUTHORIZATION_TOKEN=${PG_CONSOLE_AUTH_TOKEN}
      - PG_CONSOLE_DOCKER_IMAGE=${PG_CONSOLE_DOCKER_IMAGE}
    volumes:
      - console_postgres:/var/lib/postgresql
      - /var/run/docker.sock:/var/run/docker.sock
      - /tmp/ansible:/tmp/ansible
    networks:
      - pg-console-network
      - webproxy

volumes:
  console_postgres:

networks:
  pg-console-network:
    name: pg-console-network
  webproxy:
    name: webproxy
    external: true

.env

DOMAIN=pg-console.domain.com

PG_CONSOLE_API_URL=https://pg-console.domain.com/api/v1
PG_CONSOLE_AUTH_TOKEN=secret
PG_CONSOLE_DOCKER_IMAGE=vitabaks/postgresql_cluster:latest

Installation method

GitOps

System info

root@docker:/srv# docker version
Client: Docker Engine - Community
Version: 27.3.1
Server: Docker Engine - Community
Engine:
Version: 27.3.1

root@docker:/srv# docker exec traefik traefik version
Version: 3.2.0

root@docker:/srv# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"

Additional info

No response

@vasyakrg vasyakrg added bug Something isn't working needs triage labels Jan 22, 2025
@vitabaks vitabaks removed needs triage bug Something isn't working labels Jan 22, 2025
@vitabaks vitabaks changed the title [Bug] Console bug with external Traefik proxy Console bug with external Traefik proxy Jan 22, 2025
@vitabaks
Copy link
Owner

Hello @vasyakrg

It seems that the issue is not related to Autobase itself but rather to the custom setup involving docker-compose and Traefik integration.

We recommend considering the purchase of an Autobase package. As part of the support, we will do our best to assist you in resolving this issue, including analyzing the configuration and providing recommendations for fixes.

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

2 participants