diff --git a/docker-compose.yml b/docker-compose.yml index e9322ad..6a39ad6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,8 +20,10 @@ - PGUSER=radius - PGPASSWORD=radius networks: - - principal - - radiusnucleo_radius_net + principal: + radiusnucleo_radius_net: + aliases: + - node labels: # Habilitar Traefik - "traefik.enable=true" @@ -34,7 +36,7 @@ - "traefik.http.services.wifi-nucleoriofrio-service.loadbalancer.serverstransport=wifi-transport@file" # Router 1: Público (assets estáticos, manifest, icons) - SIN autenticación - ALTA PRIORIDAD - - "traefik.http.routers.wifi-nucleoriofrio-public.rule=Host(`wifi.nucleoriofrio.com`) && (PathPrefix(`/assets`) || PathPrefix(`/.well-known`) || PathPrefix(`/icons`) || Path(`/manifest.webmanifest`) ||Path(`/favicon.ico`) || Path(`/vite.svg`))" + - "traefik.http.routers.wifi-nucleoriofrio-public.rule=Host(`wifi.nucleoriofrio.com`) && (PathPrefix(`/assets`) || PathPrefix(`/.well-known`) || PathPrefix(`/icons`) || Path(`/manifest.webmanifest`) || Path(`/favicon.ico`) || Path(`/vite.svg`))" - "traefik.http.routers.wifi-nucleoriofrio-public.entrypoints=websecure" - "traefik.http.routers.wifi-nucleoriofrio-public.tls.certresolver=letsencrypt" - "traefik.http.routers.wifi-nucleoriofrio-public.service=wifi-nucleoriofrio-service" @@ -91,4 +93,4 @@ external: true volumes: - postgres_data: + postgres_data: \ No newline at end of file