From 64156f65c44c6bc8821c04b3fc638845adc9c354 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Sun, 9 Mar 2025 01:25:17 +0000 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index e286273..32fc432 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: ports: - "80:80" # Expose port 80 - "443:443" # Expose port 443 - - "8080:8080" # Traefik Dashboard + - "8080:8080" # Traefik Dashboard (ensure this is exposed securely) volumes: - "/var/run/docker.sock:/var/run/docker.sock" # Allow Traefik to interact with Docker networks: @@ -33,6 +33,8 @@ services: - "traefik.enable=true" - "traefik.http.routers.nextjs-app.rule=Host(`dash.embermarket.app`)" - "traefik.http.services.nextjs-app.loadbalancer.server.port=3000" + - "traefik.http.middlewares.ip-whitelist.ipWhiteList.sourcerange=212.113.116.6,194.26.229.41,138.124.13.13" + - "traefik.http.routers.nextjs-app.middlewares=ip-whitelist" environment: - NODE_ENV=production - NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api