How can I link a database to a docker image?
kdy1
PROOP
a year ago
I tried dragging, clicking at the edges of those two nodes, but I have no success and the deployment fails because the environment variable is not replaced.
code: 'ERRINVALIDURL',
input: '${{"Database (Postgres)".DATABASE_URL}}'
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
Hello,
Please see our docs on how to use reference variables -
https://docs.railway.app/guides/variables#referencing-another-services-variable
These must be done at the service level, not within any code in your codebase.