-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrender.yaml
37 lines (36 loc) · 902 Bytes
/
render.yaml
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
services:
# Backend service configuration
- type: web
name: go-backend
env: go
buildCommand: cd backend && go build -o main
startCommand: ./main
envVars:
- key: DB_HOST
fromDatabase:
name: captrivia-database
property: host
- key: DB_USER
value: postgres
- key: DB_PASSWORD
fromDatabase:
name: captrivia-database
property: password
- key: DB_NAME
value: captrivia
- key: DB_PORT
value: "5432"
healthCheckPath: /
disk:
name: backend-disk
mountPath: /app
sizeGB: 10
# Frontend service configuration
- type: web
name: react-frontend
env: static
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: frontend/build
envVars:
- key: REACT_APP_BACKEND_URL
value: "http://go-backend:8080"