From 76b238cba1a023ea0794d2ee54ecf41c85a895b3 Mon Sep 17 00:00:00 2001 From: Gianpierre Mio <88248836+DarkCodex29@users.noreply.github.com> Date: Tue, 10 Mar 2026 08:27:21 -0500 Subject: [PATCH] fix: add Traefik labels to expose api-ubigeo via reverse proxy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Container is in the easypanel network — Traefik auto-detects via labels. Routes api-ubigeo.darkcodex.dev -> port 3200 with Let's Encrypt SSL. --- docker-compose.production.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.production.yml b/docker-compose.production.yml index 75d6c23..5c10c00 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -49,6 +49,13 @@ services: REDIS_URL: "redis://ubigeo-redis:6379" PORT: 3200 NODE_ENV: production + labels: + - "traefik.enable=true" + - "traefik.http.routers.ubigeo-api.rule=Host(`api-ubigeo.darkcodex.dev`)" + - "traefik.http.routers.ubigeo-api.entrypoints=websecure" + - "traefik.http.routers.ubigeo-api.tls.certresolver=letsencrypt" + - "traefik.http.services.ubigeo-api.loadbalancer.server.port=3200" + - "traefik.docker.network=easypanel" depends_on: postgres: condition: service_healthy