Skip to content

Commit

Permalink
Enhances render.yaml file for easier deployments
Browse files Browse the repository at this point in the history
* Configure a managed postgresql database
* Inject the username, password, and connection string directly into the app server
  • Loading branch information
aaronbrethorst committed Nov 12, 2024
1 parent 98ce507 commit 47087ac
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ services:
region: oregon
plan: standard
numInstances: 1
healthCheckPath: /onebusaway-api-webapp/api/where/current-time.json?key=org.onebusaway.iphone
autoDeploy: false
healthCheckPath: /api/where/current-time.json?key=org.onebusaway.iphone
autoDeploy: true
envVars:
- key: TZ
sync: false
Expand All @@ -29,16 +29,27 @@ services:
- key: AGENCY_ID
sync: false
- key: JDBC_USER
sync: false
fromDatabase:
name: oba-postgresql
property: user
- key: JDBC_PASSWORD
sync: false
fromDatabase:
name: oba-postgresql
property: password
- key: JDBC_URL
sync: false
fromDatabase:
name: oba-postgresql
property: connectionString
- key: JDBC_DRIVER
sync: false
value: org.postgresql.Driver
- key: PORT
value: 8080
disk:
name: Bundle
mountPath: /bundle
sizeGB: 1

databases:
- name: oba-postgresql
databaseName: obadb
plan: basic-256mb

0 comments on commit 47087ac

Please sign in to comment.