Update docker-compose.yml

This commit is contained in:
NotII
2025-03-09 01:15:43 +00:00
parent 624ab437bd
commit 04000394b5

View File

@@ -5,21 +5,25 @@ services:
image: traefik:v2.5 image: traefik:v2.5
container_name: traefik container_name: traefik
command: command:
- "--api.insecure=true" # Enable Traefik dashboard (ensure security for production) - "--api.insecure=true"
- "--log.level=DEBUG" # Enable DEBUG level logs - "--log.level=DEBUG"
- "--accesslog" # Enable access logs - "--accesslog"
- "--entrypoints.web.address=:80" # Listen on port 80 (HTTP) - "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443" # Listen on port 443 (HTTPS) - "--entrypoints.websecure.address=:443" # Still listen on 443, but traffic will be HTTP after passing through AEZA
- "--entrypoints.websecure.http.middlewares=ssl-redirect" # Redirect HTTP to HTTPS if required
ports: ports:
- "80:80" # Expose HTTP port 80 - "80:80" # Expose port 80 for HTTP
- "443:443" # Expose HTTPS port 443 - "443:443" # Expose port 443 for HTTPS (AEZA will handle SSL termination)
- "8080:8080" # Traefik Dashboard (ensure to secure this in production) - "8080:8080" # Traefik dashboard, ensure it's secure if exposed
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock" # Allow Traefik to interact with Docker - "/var/run/docker.sock:/var/run/docker.sock"
- "/path/to/acme.json:/acme.json" # Path to store Let's Encrypt certs (if using)
networks: networks:
- web - web
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`dash.embermarket.app`)"
- "traefik.http.services.dashboard.loadbalancer.server.port=3000"
nextjs-app: nextjs-app:
build: build: