{"action":"created","issue":{"url":"https://api.github.com/repos/nazar-pc/docker-webserver/issues/16","repository_url":"https://api.github.com/repos/nazar-pc/docker-webserver","labels_url":"https://api.github.com/repos/nazar-pc/docker-webserver/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/nazar-pc/docker-webserver/issues/16/comments","events_url":"https://api.github.com/repos/nazar-pc/docker-webserver/issues/16/events","html_url":"https://github.com/nazar-pc/docker-webserver/issues/16","id":135900232,"number":16,"title":"mariadb keeps restarting","user":{"login":"kklepper","id":6130319,"avatar_url":"https://avatars.githubusercontent.com/u/6130319?v=3","gravatar_id":"","url":"https://api.github.com/users/kklepper","html_url":"https://github.com/kklepper","followers_url":"https://api.github.com/users/kklepper/followers","following_url":"https://api.github.com/users/kklepper/following{/other_user}","gists_url":"https://api.github.com/users/kklepper/gists{/gist_id}","starred_url":"https://api.github.com/users/kklepper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kklepper/subscriptions","organizations_url":"https://api.github.com/users/kklepper/orgs","repos_url":"https://api.github.com/users/kklepper/repos","events_url":"https://api.github.com/users/kklepper/events{/privacy}","received_events_url":"https://api.github.com/users/kklepper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-23T23:33:11Z","updated_at":"2016-02-24T12:24:32Z","closed_at":null,"body":"Hi Nazar,\r\n\r\nI try to understand and implement your extensive setup. It is the most complete I found yet.\r\n\r\nI never ran across consul or ceph, so I don't understand what they do. \r\n\r\nSo far I can spawn a load balancer in front of an NGINX-PHP (web) module connected to a MySQL or MariaDB database which itself is connected to a data container pointing to a real database on a Digital Ocean Droplet, then start a number of web instances and prove that both the load balancer and the database work correctly (provided I use version 1 of docker-compose, as tutum/haproxy does not work with version 2 yet).\r\n\r\nUsing your example, I see that examplecom_mariadb_1 keeps restarting, so I commented the automatic restart in docker-compose.yml, only to see that this container exits with 1. The log file only shows the password.\r\n\r\nIf I understand your scripts correctly, you project everything to your /data subdirectory within the container, which isn't of much use if the container isn't running.\r\n\r\nAny ideas?\r\n\r\nThanks a lot anyway."},"comment":{"url":"https://api.github.com/repos/nazar-pc/docker-webserver/issues/comments/188226855","html_url":"https://github.com/nazar-pc/docker-webserver/issues/16#issuecomment-188226855","issue_url":"https://api.github.com/repos/nazar-pc/docker-webserver/issues/16","id":188226855,"user":{"login":"nazar-pc","id":928965,"avatar_url":"https://avatars.githubusercontent.com/u/928965?v=3","gravatar_id":"","url":"https://api.github.com/users/nazar-pc","html_url":"https://github.com/nazar-pc","followers_url":"https://api.github.com/users/nazar-pc/followers","following_url":"https://api.github.com/users/nazar-pc/following{/other_user}","gists_url":"https://api.github.com/users/nazar-pc/gists{/gist_id}","starred_url":"https://api.github.com/users/nazar-pc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazar-pc/subscriptions","organizations_url":"https://api.github.com/users/nazar-pc/orgs","repos_url":"https://api.github.com/users/nazar-pc/repos","events_url":"https://api.github.com/users/nazar-pc/events{/privacy}","received_events_url":"https://api.github.com/users/nazar-pc/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T12:24:32Z","updated_at":"2016-02-24T12:24:32Z","body":"I should work now, just pull latest image"}}