-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
43 lines (41 loc) · 1000 Bytes
/
render.yaml
File metadata and controls
43 lines (41 loc) · 1000 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
services:
# Backend Rust/Axum API
- type: web
name: stoic-wisdom-api
env: docker
dockerfilePath: ./Dockerfile
region: oregon
plan: free
healthCheckPath: /health
envVars:
- key: DATABASE_URL
fromDatabase:
name: stoic-wisdom-db
property: connectionString
- key: PORT
value: 3000
- key: RUST_LOG
value: info
autoDeploy: true
# Frontend Next.js Application (SSR)
- type: web
name: stoic-wisdom-frontend
env: node
region: oregon
plan: free
buildCommand: cd frontend && npm install && npm run build
startCommand: cd frontend && npm start
healthCheckPath: /
envVars:
- key: NEXT_PUBLIC_API_BASE_URL
value: https://stoic-wisdom-api.onrender.com
- key: PORT
value: 3000
autoDeploy: true
databases:
# PostgreSQL Database
- name: stoic-wisdom-db
databaseName: stoic_wisdom
user: stoic_wisdom_user
plan: free
region: oregon