Docker update

This commit is contained in:
2025-10-10 00:03:28 +05:30
parent 150c5a0391
commit 0d79536895
3 changed files with 26 additions and 26 deletions

View File

@ -2,13 +2,15 @@ version: "3.9"
services:
nextjs:
build: .
build:
context: .
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
container_name: cmc_nextjs_pro
ports:
- "9012:3000"
env_file:
- .env # <-- tell Docker to use the .env file
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
restart: unless-stopped
volumes:
- .:/app
- /app/node_modules
# Remove the volumes - they overwrite your build!