{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/drupal/issues/3","repository_url":"https://api.github.com/repos/docker-library/drupal","labels_url":"https://api.github.com/repos/docker-library/drupal/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/drupal/issues/3/comments","events_url":"https://api.github.com/repos/docker-library/drupal/issues/3/events","html_url":"https://github.com/docker-library/drupal/issues/3","id":81468781,"number":3,"title":"Is a Volume Needed?","user":{"login":"jeden25","id":10538827,"avatar_url":"https://avatars.githubusercontent.com/u/10538827?v=3","gravatar_id":"","url":"https://api.github.com/users/jeden25","html_url":"https://github.com/jeden25","followers_url":"https://api.github.com/users/jeden25/followers","following_url":"https://api.github.com/users/jeden25/following{/other_user}","gists_url":"https://api.github.com/users/jeden25/gists{/gist_id}","starred_url":"https://api.github.com/users/jeden25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeden25/subscriptions","organizations_url":"https://api.github.com/users/jeden25/orgs","repos_url":"https://api.github.com/users/jeden25/repos","events_url":"https://api.github.com/users/jeden25/events{/privacy}","received_events_url":"https://api.github.com/users/jeden25/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":46,"created_at":"2015-05-27T14:24:38Z","updated_at":"2016-10-19T14:02:30Z","closed_at":null,"body":"Drupal would require some local storage for images and the like, right? So in order for the container to be persistent wouldn't I need to include a volume as well as the database?\r\n\r\nIf it is needed, I'm confused as to why the official Wordpress Dockerfile specifies a volume while the official Drupal Dockerfile does not?"},"comment":{"url":"https://api.github.com/repos/docker-library/drupal/issues/comments/254821833","html_url":"https://github.com/docker-library/drupal/issues/3#issuecomment-254821833","issue_url":"https://api.github.com/repos/docker-library/drupal/issues/3","id":254821833,"user":{"login":"mstenta","id":95381,"avatar_url":"https://avatars.githubusercontent.com/u/95381?v=3","gravatar_id":"","url":"https://api.github.com/users/mstenta","html_url":"https://github.com/mstenta","followers_url":"https://api.github.com/users/mstenta/followers","following_url":"https://api.github.com/users/mstenta/following{/other_user}","gists_url":"https://api.github.com/users/mstenta/gists{/gist_id}","starred_url":"https://api.github.com/users/mstenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstenta/subscriptions","organizations_url":"https://api.github.com/users/mstenta/orgs","repos_url":"https://api.github.com/users/mstenta/repos","events_url":"https://api.github.com/users/mstenta/events{/privacy}","received_events_url":"https://api.github.com/users/mstenta/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T14:02:30Z","updated_at":"2016-10-19T14:02:30Z","body":"@bluefoxicy Agreed the goal is to be able to destroy and recreate the Drupal container without losing data. The approach you're taking of mounting /var/www/html/sites as a volume (as well as modules, themes, and profiles) is one way of doing this, yes. The main drawback to this approach is that when you mount /var/www/html/sites as a volume, it is empty to start with. This means there is no default.settings.php file available for Drupal to copy during the install.php procedure. You need to then create either default.settings.php or settings.php manually. So while that is a possible approach, it is not ideal, in my opinion, because it involves extra steps. And it makes it harder for this image to be used in some environments. For example: maybe a hosting company provides an easy way to spin up Docker containers from Docker Hub images - currently this image does not provide ANY data persistence by default, which means it is not usable in that scenario without extra configuration. As opposed to MANY other images on Docker Hub that do provide a default volume in the Dockerfile."}}
{"actor":{"display_login":"mstenta"}}