Update docker-compose.yml

This commit is contained in:
NotII
2025-03-09 00:19:57 +00:00
parent 2e2966c7e5
commit 0ab13ccce3

View File

@@ -1,7 +1,6 @@
version: '3'
version: '3.8'
services:
# Traefik reverse proxy
traefik:
image: traefik:v2.5
container_name: traefik
@@ -22,19 +21,18 @@ services:
labels:
- "traefik.enable=true"
# Next.js application
nextjs-app:
build:
context: .
context: . # Path to your project
dockerfile: Dockerfile
container_name: nextjs-app-container
expose:
- "3000" # Expose Next.js app inside the Docker network
- "3000" # Expose port 3000 internally
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`dash.embermarket.app`)"
- "traefik.http.services.dashboard.loadbalancer.server.port=3000"
environment:
- NODE_ENV=production
- 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