{"action":"created","issue":{"url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/338","labels_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/338/comments","events_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/338/events","html_url":"https://github.com/mail-in-a-box/mailinabox/pull/338","id":58966884,"number":338,"title":"Dockerization","user":{"login":"chrert","id":1387661,"avatar_url":"https://avatars.githubusercontent.com/u/1387661?v=3","gravatar_id":"","url":"https://api.github.com/users/chrert","html_url":"https://github.com/chrert","followers_url":"https://api.github.com/users/chrert/followers","following_url":"https://api.github.com/users/chrert/following{/other_user}","gists_url":"https://api.github.com/users/chrert/gists{/gist_id}","starred_url":"https://api.github.com/users/chrert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrert/subscriptions","organizations_url":"https://api.github.com/users/chrert/orgs","repos_url":"https://api.github.com/users/chrert/repos","events_url":"https://api.github.com/users/chrert/events{/privacy}","received_events_url":"https://api.github.com/users/chrert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-02-25T20:48:26Z","updated_at":"2015-03-04T07:27:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mail-in-a-box/mailinabox/pulls/338","html_url":"https://github.com/mail-in-a-box/mailinabox/pull/338","diff_url":"https://github.com/mail-in-a-box/mailinabox/pull/338.diff","patch_url":"https://github.com/mail-in-a-box/mailinabox/pull/338.patch"},"body":"@Toilal and me managed to get a working docker version.\r\n\r\n### Notes and questions\r\n\r\n* The nsd service must bind to the actual private ip of the container. This ip may change on restart, so it would be nice if we could somehow adjust `/etc/nsd/nsd.conf` at startup (maybe an init script in `/etc/myinit.d/` ?) I tried to rewrite it in the nsd runit service (`/containers/docker/runit/nsd.sh`) before startup of the service but that doesn't seem to work. Do you have an idea how to do this?\r\n* Sometimes some services fail to start if the container was restarted – at least the control panel says so. I couldn't figure out what is going wrong here.\r\n* Is it necessary to add `/etc/mailinabox.conf` as a volume to `mailinabox-userdata` or is it possible to regenerate it on startup?\r\n\r\n### Usage\r\n\r\nOn first startup, you can simply run `containers/docker/run`. As before, this will create the volumes, the services container and it will initialize mailinabox. This should be run only once. After that, it's possible to start/stop/restart the container with `docker start/stop/restart mailinabox-services`. You could also write an upstart script as described [here](https://docs.docker.com/articles/host_integration/)."},"comment":{"url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/comments/77108690","html_url":"https://github.com/mail-in-a-box/mailinabox/pull/338#issuecomment-77108690","issue_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/338","id":77108690,"user":{"login":"rdrey","id":347977,"avatar_url":"https://avatars.githubusercontent.com/u/347977?v=3","gravatar_id":"","url":"https://api.github.com/users/rdrey","html_url":"https://github.com/rdrey","followers_url":"https://api.github.com/users/rdrey/followers","following_url":"https://api.github.com/users/rdrey/following{/other_user}","gists_url":"https://api.github.com/users/rdrey/gists{/gist_id}","starred_url":"https://api.github.com/users/rdrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdrey/subscriptions","organizations_url":"https://api.github.com/users/rdrey/orgs","repos_url":"https://api.github.com/users/rdrey/repos","events_url":"https://api.github.com/users/rdrey/events{/privacy}","received_events_url":"https://api.github.com/users/rdrey/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T07:27:33Z","updated_at":"2015-03-04T07:27:33Z","body":"No, nothing recursive to my own domain yet. I've been trying these:\r\n\r\n    gmail -> me@box - works\r\n    workmail -> me@box - works\r\n    me@box -> gmail - fails\r\n    me@box -> workmail - fails"}}