{"action":"opened","issue":{"url":"https://api.github.com/repos/backdrop-ops/backdrop-docker/issues/2","repository_url":"https://api.github.com/repos/backdrop-ops/backdrop-docker","labels_url":"https://api.github.com/repos/backdrop-ops/backdrop-docker/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/backdrop-ops/backdrop-docker/issues/2/comments","events_url":"https://api.github.com/repos/backdrop-ops/backdrop-docker/issues/2/events","html_url":"https://github.com/backdrop-ops/backdrop-docker/issues/2","id":145264453,"number":2,"title":"Support `ENV` based database credentials ","user":{"login":"pirog","id":713424,"avatar_url":"https://avatars.githubusercontent.com/u/713424?v=3","gravatar_id":"","url":"https://api.github.com/users/pirog","html_url":"https://github.com/pirog","followers_url":"https://api.github.com/users/pirog/followers","following_url":"https://api.github.com/users/pirog/following{/other_user}","gists_url":"https://api.github.com/users/pirog/gists{/gist_id}","starred_url":"https://api.github.com/users/pirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirog/subscriptions","organizations_url":"https://api.github.com/users/pirog/orgs","repos_url":"https://api.github.com/users/pirog/repos","events_url":"https://api.github.com/users/pirog/events{/privacy}","received_events_url":"https://api.github.com/users/pirog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-01T19:26:55Z","updated_at":"2016-04-01T19:26:55Z","closed_at":null,"body":"Similar to Wordpress, Backdrop is a CMD firmly rooted in the 2010's. As a result you can set your database creds in the environment instead of in a flat file. Docker tooling makes this pretty easy and awesome and a good working example is over at https://hub.docker.com/_/wordpress/\r\n\r\nHere is a first pass on what ENV might be worth adding\r\n```\r\n-e BACKDROP_DB_HOST=... (defaults to the IP and port of the linked mysql container)\r\n-e BACKDROP_DB_USER=... (defaults to \"root\")\r\n-e BACKDROP_DB_PASSWORD=... (defaults to the value of the MYSQL_ROOT_PASSWORD environment variable from the linked mysql container)\r\n-e BACKDROP_DB_NAME=... (defaults to \"wordpress\")\r\n```\r\n\r\n@jenlampton @quicksketch i would totally be down to add support for this so in kalabox spin ups that are not tied to pantheon the user doesnt get annoyed entering their DB credentials like this is drupal 8 or something. \r\n\r\nPresumably we could take the user defined ENV responses and merge them with defaults we set and then construct the `BACKDROP_SETTINGS` json and inject it into $_SERVER. That *would* provide some limitations to the user re: using `BACKDROP_SETTINGS` for other purposes. \r\n\r\nAnyway, LMK!\r\n"}}