feat(docker): add nginx frontend image and full-stack compose
Build static assets with Vite, proxy /api to backend, and document server env vars. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Copy to .env.docker on the server (never commit secrets).
|
||||
#
|
||||
# Build-time: API base URL for the Vue app (/api = nginx proxies to backend).
|
||||
VITE_API_URL=/api
|
||||
|
||||
# Host port for the frontend container
|
||||
FRONTEND_PORT=8080
|
||||
|
||||
# Backend env (used by ../backend-nest service in compose)
|
||||
JWT_SECRET=replace-with-a-long-random-secret
|
||||
# Must match the public URL users open in the browser (scheme + host + port).
|
||||
CORS_ORIGIN=http://your-server:8080
|
||||
Reference in New Issue
Block a user