Create docker-compose.yml

This commit is contained in:
NotII
2025-03-08 23:46:17 +00:00
parent dcd46bdf7a
commit 4664fb380b

17
docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
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