My scenario:
There are multiple applications running on the same server, but I only want them to connect to the same PostgreSQL service. However, these different applications will use different databases within that service (they won’t share the same database).
Currently, I can achieve this by manually setting the DATABASE_URL environment variable.
However, since there is already a convenient link command, I wonder if it’s possible to consider adding an extra parameter to handle this case.
For example:
dokku postgres:link my-app my-db -d database_name1