services:
api:
build:
context: .
dockerfile: Dockerfile
target: production
container_name: nestjs-api
ports:
- "3000:3000"
env_file:
- .env
environment:
NODE_ENV: production
restart: unless-stopped
Powered by TurnKey Linux.