{"action":"created","comment":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/42048780","id":42048780,"diff_hunk":"@@ -0,0 +1,86 @@\n+# Description\n+This Docker Compose development environment includes\n+\n+* PHP 5.6.*\n+* MySQL 5.6\n+* Nginx 1.6.2\n+* Composer\n+\n+# Usage\n+\n+First you need to install Docker and Docker Compose.\n+\n+```\n+$ cd docker\n+$ docker-compose up\n+```\n+\n+Now you have a few options to get started\n+\n+## Basic\n+\n+Get the ip of the Nginx container.\n+\n+```\n+docker inspect $(docker-compose ps -q nginx) | grep IPAddress\n+```\n+\n+## Advanced\n+\n+Run a `dnsdock` container before `docker-compose up`, more info: https://github.com/tonistiigi/dnsdock\n+Access the containers from the dns records.\n+\n+# Troubleshooting\n+\n+## How to enter a container?\n+\n+Enter the php container to install composer vendors etc.\n+\n+```\n+docker exec -it $(docker-compose ps -q php) bash\n+```\n+\n+## The application is too slow.\n+\n+Install composer vendors in the container and symlink them to the application directory.\n+Execute inside the php container:\n+\n+```\n+mkdir /vendor && ln -sf /vendor ./vendor\n+```\n+\n+Using Symfony2 inside Vagrant can be slow due to synchronisation delay incurred by NFS.\n+You can write the app logs and cache to a folder on the php container.\n+\n+Enter the php container and create the directory:\n+\n+```\n+docker exec -it $(docker-compose ps -q php) bash\n+mkdir /dev/shm/sylius/\n+setfacl -R -m u:\"www-data\":rwX -m u:`whoami`:rwX /dev/shm/sylius/\n+setfacl -dR -m u:\"www-data\":rwX -m u:`whoami`:rwX /dev/shm/sylius/\n+```\n+\n+\n+\n+To view the application logs, run the following commands:\n+\n+```bash\n+tail -f /dev/shm/sylius/app/logs/prod.log\n+tail -f\n+```\n+\n+## No frontcontroller access\n+\n+Remove the following lines from `app_dev.php`\n+\n+```","path":"docker/README.md","position":77,"original_position":77,"commit_id":"97788283b9a8e96be2e3fc0c1642c8d1e0888616","original_commit_id":"97788283b9a8e96be2e3fc0c1642c8d1e0888616","user":{"login":"stloyd","id":67402,"avatar_url":"https://avatars.githubusercontent.com/u/67402?v=3","gravatar_id":"","url":"https://api.github.com/users/stloyd","html_url":"https://github.com/stloyd","followers_url":"https://api.github.com/users/stloyd/followers","following_url":"https://api.github.com/users/stloyd/following{/other_user}","gists_url":"https://api.github.com/users/stloyd/gists{/gist_id}","starred_url":"https://api.github.com/users/stloyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stloyd/subscriptions","organizations_url":"https://api.github.com/users/stloyd/orgs","repos_url":"https://api.github.com/users/stloyd/repos","events_url":"https://api.github.com/users/stloyd/events{/privacy}","received_events_url":"https://api.github.com/users/stloyd/received_events","type":"User","site_admin":false},"body":"Agree about that, and IIRC there other workarounds than this with env.","created_at":"2015-10-14T20:32:22Z","updated_at":"2015-10-14T20:32:22Z","html_url":"https://github.com/Sylius/Sylius/pull/3432#discussion_r42048780","pull_request_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3432","_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/42048780"},"html":{"href":"https://github.com/Sylius/Sylius/pull/3432#discussion_r42048780"},"pull_request":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3432"}}},"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/3432","id":47670661,"html_url":"https://github.com/Sylius/Sylius/pull/3432","diff_url":"https://github.com/Sylius/Sylius/pull/3432.diff","patch_url":"https://github.com/Sylius/Sylius/pull/3432.patch","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/3432","number":3432,"state":"open","locked":false,"title":"A Docker Compose configuration to develop in Docker containers.","user":{"login":"jverdeyen","id":117409,"avatar_url":"https://avatars.githubusercontent.com/u/117409?v=3","gravatar_id":"","url":"https://api.github.com/users/jverdeyen","html_url":"https://github.com/jverdeyen","followers_url":"https://api.github.com/users/jverdeyen/followers","following_url":"https://api.github.com/users/jverdeyen/following{/other_user}","gists_url":"https://api.github.com/users/jverdeyen/gists{/gist_id}","starred_url":"https://api.github.com/users/jverdeyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jverdeyen/subscriptions","organizations_url":"https://api.github.com/users/jverdeyen/orgs","repos_url":"https://api.github.com/users/jverdeyen/repos","events_url":"https://api.github.com/users/jverdeyen/events{/privacy}","received_events_url":"https://api.github.com/users/jverdeyen/received_events","type":"User","site_admin":false},"body":"With this Docker setup it's very easy to test drive all kind of services like Elasticsearch, Redis etc..\r\n\r\n| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Fixed tickets | -\r\n| License       | MIT\r\n| Doc PR        | https://github.com/jverdeyen/Sylius/blob/feature-docker-development-environment/docker/README.md","created_at":"2015-10-14T14:59:34Z","updated_at":"2015-10-14T20:32:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2baae545012fa95b945729200620c087c93af1f0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3432/commits","review_comments_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3432/comments","review_comment_url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3432/comments","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/97788283b9a8e96be2e3fc0c1642c8d1e0888616","head":{"label":"jverdeyen:feature-docker-development-environment","ref":"feature-docker-development-environment","sha":"97788283b9a8e96be2e3fc0c1642c8d1e0888616","user":{"login":"jverdeyen","id":117409,"avatar_url":"https://avatars.githubusercontent.com/u/117409?v=3","gravatar_id":"","url":"https://api.github.com/users/jverdeyen","html_url":"https://github.com/jverdeyen","followers_url":"https://api.github.com/users/jverdeyen/followers","following_url":"https://api.github.com/users/jverdeyen/following{/other_user}","gists_url":"https://api.github.com/users/jverdeyen/gists{/gist_id}","starred_url":"https://api.github.com/users/jverdeyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jverdeyen/subscriptions","organizations_url":"https://api.github.com/users/jverdeyen/orgs","repos_url":"https://api.github.com/users/jverdeyen/repos","events_url":"https://api.github.com/users/jverdeyen/events{/privacy}","received_events_url":"https://api.github.com/users/jverdeyen/received_events","type":"User","site_admin":false},"repo":{"id":37852687,"name":"Sylius","full_name":"jverdeyen/Sylius","owner":{"login":"jverdeyen","id":117409,"avatar_url":"https://avatars.githubusercontent.com/u/117409?v=3","gravatar_id":"","url":"https://api.github.com/users/jverdeyen","html_url":"https://github.com/jverdeyen","followers_url":"https://api.github.com/users/jverdeyen/followers","following_url":"https://api.github.com/users/jverdeyen/following{/other_user}","gists_url":"https://api.github.com/users/jverdeyen/gists{/gist_id}","starred_url":"https://api.github.com/users/jverdeyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jverdeyen/subscriptions","organizations_url":"https://api.github.com/users/jverdeyen/orgs","repos_url":"https://api.github.com/users/jverdeyen/repos","events_url":"https://api.github.com/users/jverdeyen/events{/privacy}","received_events_url":"https://api.github.com/users/jverdeyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jverdeyen/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/jverdeyen/Sylius","forks_url":"https://api.github.com/repos/jverdeyen/Sylius/forks","keys_url":"https://api.github.com/repos/jverdeyen/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jverdeyen/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jverdeyen/Sylius/teams","hooks_url":"https://api.github.com/repos/jverdeyen/Sylius/hooks","issue_events_url":"https://api.github.com/repos/jverdeyen/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/jverdeyen/Sylius/events","assignees_url":"https://api.github.com/repos/jverdeyen/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/jverdeyen/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/jverdeyen/Sylius/tags","blobs_url":"https://api.github.com/repos/jverdeyen/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jverdeyen/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jverdeyen/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/jverdeyen/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jverdeyen/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/jverdeyen/Sylius/languages","stargazers_url":"https://api.github.com/repos/jverdeyen/Sylius/stargazers","contributors_url":"https://api.github.com/repos/jverdeyen/Sylius/contributors","subscribers_url":"https://api.github.com/repos/jverdeyen/Sylius/subscribers","subscription_url":"https://api.github.com/repos/jverdeyen/Sylius/subscription","commits_url":"https://api.github.com/repos/jverdeyen/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/jverdeyen/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/jverdeyen/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/jverdeyen/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/jverdeyen/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/jverdeyen/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jverdeyen/Sylius/merges","archive_url":"https://api.github.com/repos/jverdeyen/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jverdeyen/Sylius/downloads","issues_url":"https://api.github.com/repos/jverdeyen/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/jverdeyen/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/jverdeyen/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/jverdeyen/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jverdeyen/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/jverdeyen/Sylius/releases{/id}","created_at":"2015-06-22T11:55:48Z","updated_at":"2015-06-22T11:55:54Z","pushed_at":"2015-10-14T14:56:56Z","git_url":"git://github.com/jverdeyen/Sylius.git","ssh_url":"git@github.com:jverdeyen/Sylius.git","clone_url":"https://github.com/jverdeyen/Sylius.git","svn_url":"https://github.com/jverdeyen/Sylius","homepage":"Sylius.org","size":17402,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Sylius:master","ref":"master","sha":"3e68059c73104668f2a3d82c47f68d918c191a57","user":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"repo":{"id":2717549,"name":"Sylius","full_name":"Sylius/Sylius","owner":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sylius/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":false,"url":"https://api.github.com/repos/Sylius/Sylius","forks_url":"https://api.github.com/repos/Sylius/Sylius/forks","keys_url":"https://api.github.com/repos/Sylius/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sylius/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sylius/Sylius/teams","hooks_url":"https://api.github.com/repos/Sylius/Sylius/hooks","issue_events_url":"https://api.github.com/repos/Sylius/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/Sylius/Sylius/events","assignees_url":"https://api.github.com/repos/Sylius/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/Sylius/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/Sylius/Sylius/tags","blobs_url":"https://api.github.com/repos/Sylius/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sylius/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sylius/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sylius/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/Sylius/Sylius/languages","stargazers_url":"https://api.github.com/repos/Sylius/Sylius/stargazers","contributors_url":"https://api.github.com/repos/Sylius/Sylius/contributors","subscribers_url":"https://api.github.com/repos/Sylius/Sylius/subscribers","subscription_url":"https://api.github.com/repos/Sylius/Sylius/subscription","commits_url":"https://api.github.com/repos/Sylius/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sylius/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sylius/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sylius/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sylius/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/Sylius/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sylius/Sylius/merges","archive_url":"https://api.github.com/repos/Sylius/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sylius/Sylius/downloads","issues_url":"https://api.github.com/repos/Sylius/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/Sylius/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/Sylius/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/Sylius/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sylius/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/Sylius/Sylius/releases{/id}","created_at":"2011-11-05T22:05:52Z","updated_at":"2015-10-14T15:23:45Z","pushed_at":"2015-10-14T15:07:53Z","git_url":"git://github.com/Sylius/Sylius.git","ssh_url":"git@github.com:Sylius/Sylius.git","clone_url":"https://github.com/Sylius/Sylius.git","svn_url":"https://github.com/Sylius/Sylius","homepage":"Sylius.org","size":70863,"stargazers_count":1988,"watchers_count":1988,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":726,"mirror_url":null,"open_issues_count":534,"forks":726,"open_issues":534,"watchers":1988,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3432"},"html":{"href":"https://github.com/Sylius/Sylius/pull/3432"},"issue":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/3432"},"comments":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/3432/comments"},"review_comments":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3432/comments"},"review_comment":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3432/commits"},"statuses":{"href":"https://api.github.com/repos/Sylius/Sylius/statuses/97788283b9a8e96be2e3fc0c1642c8d1e0888616"}}}}