Update docker-compose.yml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user