Deployment with Docker and Nginx

Harry · 22 Sep 2026 · 1 views
Log in to track your progress and mark lessons complete.

Build

npm run build   # dist/

Serve

Nginx serves dist with SPA fallback and proxies /api to the backend.

Compose for Demo Day

One compose file: postgres, API and nginx - so the project runs with a single command.

Key Points

  • Production env points at the real API.
  • Same-origin proxy avoids CORS.
  • Document exact run steps in the README.
Share this post:

Comments (0)

Please login or register to comment.

Create a free account to keep reading

You've enjoyed a free tutorial! Register (it's free) to unlock every tutorial, track your progress and save code.

or sign in with your account

Already have an account? Log in