Update docker-compose.yml
This commit is contained in:
@@ -5,7 +5,7 @@ services:
|
|||||||
image: traefik:v2.5
|
image: traefik:v2.5
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
command:
|
command:
|
||||||
- "--api.insecure=true" # Enable Traefik dashboard
|
- "--api.insecure=true" # Enable Traefik dashboard (optional)
|
||||||
- "--log.level=DEBUG" # Enable DEBUG level logs
|
- "--log.level=DEBUG" # Enable DEBUG level logs
|
||||||
- "--accesslog" # Enable access logs
|
- "--accesslog" # Enable access logs
|
||||||
- "--entrypoints.web.address=:80" # Listen on port 80
|
- "--entrypoints.web.address=:80" # Listen on port 80
|
||||||
@@ -14,7 +14,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "80:80" # Expose port 80
|
- "80:80" # Expose port 80
|
||||||
- "443:443" # Expose port 443
|
- "443:443" # Expose port 443
|
||||||
- "8080:8080" # Traefik Dashboard (ensure this is exposed securely)
|
- "8080:8080" # Traefik Dashboard (optional)
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock" # Allow Traefik to interact with Docker
|
- "/var/run/docker.sock:/var/run/docker.sock" # Allow Traefik to interact with Docker
|
||||||
networks:
|
networks:
|
||||||
@@ -33,8 +33,13 @@ services:
|
|||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.nextjs-app.rule=Host(`dash.embermarket.app`)"
|
- "traefik.http.routers.nextjs-app.rule=Host(`dash.embermarket.app`)"
|
||||||
- "traefik.http.services.nextjs-app.loadbalancer.server.port=3000"
|
- "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"
|
# IP Whitelist middleware for the Next.js app
|
||||||
|
- "traefik.http.routers.nextjs-app.middlewares=ip-whitelist" # Apply the IP whitelist middleware
|
||||||
|
|
||||||
|
# Define the IP whitelist middleware for the Next.js app
|
||||||
|
- "traefik.http.middlewares.ip-whitelist.ipWhiteList.sourcerange=212.113.116.6,194.26.229.41,138.124.13.13" # Allowed IPs
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api
|
- NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api
|
||||||
|
|||||||
Reference in New Issue
Block a user