Update docker-compose.yml

This commit is contained in:
NotII
2025-03-09 00:07:16 +00:00
parent 22483dd23b
commit d7ca646eba

View File

@@ -1,33 +1,50 @@
version: '3.8' version: '3'
services: services:
# AEZA (WAF) Service
aeza:
image: aeza/waf:latest
container_name: aeza-waf
ports:
- "80:80" # Expose AEZA on port 80
- "443:443" # Expose AEZA on port 443
labels:
- "traefik.enable=false" # Disable Traefik routing directly to AEZA
environment:
- WAF_ENABLE=true
- WAF_API_URL=https://internal-api.inboxi.ng/api # Update with your WAF config
restart: unless-stopped
# Traefik reverse proxy
traefik: traefik:
image: traefik:v2.7 image: traefik:v2.9
container_name: traefik container_name: traefik
command: command:
- "--api.insecure=true" - "--api.insecure=true" # Enable Traefik dashboard
- "--entrypoints.web.address=:80" - "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443" - "--entrypoints.websecure.address=:443"
- "--providers.docker=true" - "--providers.docker=true" # Enable Docker provider
ports: ports:
- "80:80" - "80:80" # Expose HTTP port
- "443:443" - "443:443" # Expose HTTPS port
- "8080:8080" # Traefik dashboard - "8080:8080" # Traefik Dashboard port (optional)
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock" - "/var/run/docker.sock:/var/run/docker.sock" # Allow Traefik to monitor Docker
restart: unless-stopped
# Next.js application
nextjs-app: nextjs-app:
build: build:
context: . # Path to your project context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: nextjs-app-container container_name: nextjs-app-container
expose: expose:
- "3000" # Expose port 3000 internally - "3000" # Expose Next.js app inside the Docker network
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`dash.embermarket.app`)"
- "traefik.http.services.dashboard.loadbalancer.server.port=3000"
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
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`dash.embermarket.app`)" # Use AEZA as reverse proxy
- "traefik.http.services.dashboard.loadbalancer.server.port=3000"
restart: unless-stopped restart: unless-stopped