-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
29 lines (29 loc) · 1.06 KB
/
Copy pathrender.yaml
File metadata and controls
29 lines (29 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Render Blueprint: Spring Boot API (Docker). DB is Neon (external); cache is in-memory.
# Render -> New -> Blueprint -> connect this repo; it prompts for every `sync: false` secret.
services:
- type: web
name: orbit-api
runtime: docker
rootDir: backend
dockerfilePath: ./Dockerfile
plan: free
region: oregon
# Liveness only: the aggregate /actuator/health goes 503 while Neon (free tier) is waking,
# which would fail the deploy on cold start. Liveness reports app health without touching the DB.
healthCheckPath: /actuator/health/liveness
autoDeploy: true
envVars:
- key: SPRING_PROFILES_ACTIVE
value: prod
- key: NASA_API_KEY
sync: false
# DATABASE_URL must be the JDBC form: jdbc:postgresql://<host>/<db>?sslmode=require
# (Neon's default string has no jdbc: prefix). Set user/password separately, below.
- key: DATABASE_URL
sync: false
- key: DATABASE_USERNAME
sync: false
- key: DATABASE_PASSWORD
sync: false
- key: CORS_ORIGINS
sync: false