mirror of
https://github.com/andwati/cymelle.git
synced 2026-10-18 08:22:54 +00:00
1.4 KiB
1.4 KiB
Render deployment
This repository is configured for two Docker-backed Render web services:
cymelle-api: Spring Boot APIcymelle-web: TanStack/Nitro frontend
No PostgreSQL container or Render database is created. Use your Neon database connection string.
Render setup
- Create a new Blueprint on Render using
render.yaml. - When Render asks for
DATABASE_URL, paste your Neon pooled PostgreSQL connection string.- A Neon URL like
postgresql://user:password@host/db?sslmode=requireis accepted. - A Neon JDBC URL like
jdbc:postgresql://host/db?user=...&password=...&sslmode=requireis also accepted.
- A Neon URL like
- Deploy both services.
- If Render assigns different service URLs than the defaults in
render.yaml, update:cymelle-api->APP_CORS_ALLOWED_ORIGINSto the frontend URL.cymelle-web->VITE_API_BASE_URLto the API URL plus/api.
Local Docker builds
Build the API:
docker build -t cymelle-api ./orders-backend
Run the API with Neon:
docker run --rm -p 8080:8080 \
-e DATABASE_URL='postgresql://user:password@host/db?sslmode=require' \
-e APP_CORS_ALLOWED_ORIGINS='http://localhost:3000' \
cymelle-api
Build the frontend:
docker build -t cymelle-web \
--build-arg VITE_API_BASE_URL=http://localhost:8080/api \
./orders-frontend
Run the frontend:
docker run --rm -p 3000:3000 cymelle-web