21 lines
484 B
YAML
21 lines
484 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
nextjs-app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8091:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3000
|
|
- HOSTNAME=0.0.0.0
|
|
restart: unless-stopped
|
|
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 |