diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cbdd62a --- /dev/null +++ b/docker-compose.yml @@ -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