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: services:
# Traefik reverse proxy
traefik: traefik:
image: traefik:v2.5 image: traefik:v2.5
container_name: traefik container_name: traefik
@@ -22,19 +21,18 @@ services:
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
# Next.js application
nextjs-app: nextjs-app:
build: build:
context: . context: . # Path to your project
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: nextjs-app-container container_name: nextjs-app-container
expose: 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: 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