```datasource db { provider = "postgresql" url...
# orm-help
e
Copy code
datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}
is it possible to read url from file? Something like
Copy code
url = file("/path/to/file/")
I'm using docker secrets, so all I have is a path to the secret
s
You can do this:
Copy code
dotenv -e path/to/.env — prisma generate
Also, what is the “path to secret”? Is it the file path?
e
yes. when you use docker secrets it mounts a file with a secret into your container. So if you open /run/secrets/database_url you will see nothing but a url connection string
I've created a feature request https://github.com/prisma/prisma/issues/4980
👍🏼 2