version: '3.8' services: nextjs-app: # Build the image from the Dockerfile build: context: . dockerfile: Dockerfile container_name: nextjs-app-container ports: - "3000:3000" # Map container port 3000 to host port 3000 environment: - NODE_ENV=production - NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api volumes: - .:/app # Mount the current directory to /app in the container restart: unless-stopped