Hi, I need to pass a DATABASE_URL env variable to my docker instance. Im using render blueprint for my stack.
services:
- type: web
name: my-name
runtime: image
image:
url: fusionauth/fusionauth-app:latest
region: frankfurt
plan: free
healthCheckPath: /api/status
startCommand: export DATABASE_URL=“jdbc:postgresql://${DATABASE_HOST}-a.frankfurt-postgres.render.com/${DATABASE_NAME}?currentSchema=mySchema”
envVars:- key: DATABASE_HOST
fromDatabase:
name: my-database
property: host - key: DATABASE_NAME
…
…
- key: DATABASE_HOST
Container starts up. All my env variables defined in ‘envVars’ are correctly stored, but the DATABASE_URL from the ‘startCommand’ is not set. How can I achieve this with blueprint? I don’t want to set the DATABASE_URL manually.
I cannot find a similar example in the docs or web.
Thanks in advance!