-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
65 lines (63 loc) · 1.97 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
- type: web
name: lab-desenv-soft-todo-list
runtime: static
buildCommand: npm run build
envVars:
# OBS: Essa variável de ambiente deve ser configurada manualmente no
# painel do Render, pois o blueprint não possui uma forma de obter o
# endereço publico do serviço de API.
- key: VITE_API_URL
value: http://<host>:<port>/api/
staticPublishPath: ./dist
rootDir: front-end
routes:
- type: rewrite
source: /*
destination: /index.html
- type: web
runtime: docker
name: lab-desenv-soft-todo-list-api
region: oregon
plan: free
rootDir: back-end
healthCheckPath: /api/healthz
envVars:
- key: DATABASE_HOST
fromDatabase:
name: lab-desenv-soft-todo-list-db
property: host
- key: DATABASE_PORT
fromDatabase:
name: lab-desenv-soft-todo-list-db
property: port
- key: DATABASE_NAME
fromDatabase:
name: lab-desenv-soft-todo-list-db
property: database
# OBS: Essa variável de ambiente deve ser configurada manualmente no
# painel do Render, usando os valores em DATABASE_HOST, DATABASE_PORT e
# DATABASE_NAME, pois o blueprint não suporta interpolação de variáveis
# de ambiente.
- key: SPRING_DATASOURCE_URL
value: jdbc:postgresql://<host>:<port>/<database>
- key: SPRING_DATASOURCE_USERNAME
fromDatabase:
name: lab-desenv-soft-todo-list-db
property: user
- key: SPRING_DATASOURCE_PASSWORD
fromDatabase:
name: lab-desenv-soft-todo-list-db
property: password
- key: SPRING_DATASOURCE_DRIVER_CLASS_NAME
value: org.postgresql.Driver
databases:
- name: lab-desenv-soft-todo-list-db
postgresMajorVersion: "16"
region: oregon
plan: free
databaseName: todolistdb
user: todolistdefaultuser
ipAllowList:
- source: 0.0.0.0/0
description: everywhere