Docker config

This commit is contained in:
mukesh13
2025-06-16 20:15:06 +05:30
parent 4c8ab08a06
commit 4fb2a3d5cd
3 changed files with 182 additions and 61 deletions

View File

@ -1,5 +1,7 @@
version: '3.8'
services:
web:
nextjs-app:
build:
context: .
dockerfile: Dockerfile
@ -7,11 +9,13 @@ services:
- "8091:3000"
environment:
- NODE_ENV=production
- NEXT_TELEMETRY_DISABLED=1
volumes:
- .:/app
- /app/node_modules
- next-cache:/app/.next/cache
- PORT=3000
- HOSTNAME=0.0.0.0
restart: unless-stopped
volumes:
next-cache:
container_name: nextjs-app
# Uncomment the following lines if you need to persist data or add volumes
# volumes:
# - ./data:/app/data
# If you need environment variables from a file
# env_file:
# - .env.local