Docker config
This commit is contained in:
@ -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
|
||||
Reference in New Issue
Block a user