Since we didn't want to add sensitive data like the database password to git, we added it ($PRODUCTION_DB_DATABASE
) to our local .env file. It worked before in version v1.16.7, but was probably never intended to be supported at all.
I guess we should switch to the new hosting provider integration (shipped with v1.17.0
) to implement our functionality without the need for the production database password at all (e.g. using only SSH access).
Looking forward for any help and opinions!
\nThe custom command was copied from this gist and slightly adjusted:
\nhttps://gist.github.com/peterkraume/6646acca841274516c41a3644010bbae
ddev has never had any support for .env files. docker-compose might have had some kind of change...
","upvoteCount":2,"url":"https://github.com/orgs/ddev/discussions/2940#discussioncomment-589880"}}}-
Since latest version We are been using a custom command
Since we didn't want to add sensitive data like the database password to git, we added it ( I guess we should switch to the new hosting provider integration (shipped with Looking forward for any help and opinions! The custom command was copied from this gist and slightly adjusted: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 19 replies
-
ddev has never had any support for .env files. docker-compose might have had some kind of change... |
Beta Was this translation helpful? Give feedback.
-
Hey y'all, just stumbled about this! I'm planning to use provider integration https://ddev.readthedocs.io/en/stable/users/providers/provider-introduction/ via rsync (https://github.com/drud/ddev/blob/master/pkg/ddevapp/dotddev_assets/providers/rsync.yaml.example). I now have the same challenge as @dahaupt: Where could I secretly store the SSH oder database password? Is there a current solution? Does not need to be an .env file, can be another solution (another file) as well, as long as it can be ignored in git. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
A followup on this thread. Docker Compose will read environment variables stored in a We use this method as follows with DDEV:
Hope this was helpful! |
Beta Was this translation helpful? Give feedback.
ddev has never had any support for .env files. docker-compose might have had some kind of change...