Skip to content

Instantly share code, notes, and snippets.

@truongluu
Created December 21, 2025 13:37
Show Gist options
  • Select an option

  • Save truongluu/73dd57979a6815b6e651675944689d8e to your computer and use it in GitHub Desktop.

Select an option

Save truongluu/73dd57979a6815b6e651675944689d8e to your computer and use it in GitHub Desktop.
Docker compose NextJS
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL:-http://localhost:3000}
container_name: ranking-sys-app
ports:
- "3000:3000"
env_file:
- .env.production
restart: unless-stopped
networks:
- ranking-sys-network
networks:
ranking-sys-network:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment