{"action":"opened","number":2032,"pull_request":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/2032","id":45697458,"html_url":"https://github.com/jhipster/generator-jhipster/pull/2032","diff_url":"https://github.com/jhipster/generator-jhipster/pull/2032.diff","patch_url":"https://github.com/jhipster/generator-jhipster/pull/2032.patch","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2032","number":2032,"state":"open","locked":false,"title":"Generate docker-compose","user":{"login":"pascalgrimaud","id":9156882,"avatar_url":"https://avatars.githubusercontent.com/u/9156882?v=3","gravatar_id":"","url":"https://api.github.com/users/pascalgrimaud","html_url":"https://github.com/pascalgrimaud","followers_url":"https://api.github.com/users/pascalgrimaud/followers","following_url":"https://api.github.com/users/pascalgrimaud/following{/other_user}","gists_url":"https://api.github.com/users/pascalgrimaud/gists{/gist_id}","starred_url":"https://api.github.com/users/pascalgrimaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascalgrimaud/subscriptions","organizations_url":"https://api.github.com/users/pascalgrimaud/orgs","repos_url":"https://api.github.com/users/pascalgrimaud/repos","events_url":"https://api.github.com/users/pascalgrimaud/events{/privacy}","received_events_url":"https://api.github.com/users/pascalgrimaud/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nDescription\r\nAs discussed in #1674 (which is closed), I want to propose this.\r\nThis is a first pull request about docker-compose, to know if I'm in correct way.\r\n\r\nThe main goal is to provided the other services **for the developer to start faster** !\r\nAfter generating a new JHipster project, you'll have a new `docker-compose.yml` file in the folder project.\r\nYou can simply ignore this file or... if you like Docker, you can start the service needed by your project.\r\n\r\nFor example, you decided to build a new project with MySQL in DEV (instead of H2)\r\n```\r\nyo jhipster\r\ndocker-compose up -d\r\nmvn spring-boot:run\r\n```\r\n\r\nYou don't have to install or configure a new database.\r\nAt the moment, it works with MySQL, PostgreSQL, MongoDB, Cassandra.\r\n\r\nWith Cassandra, you have to build the image, inject the cql files and execute the cql :\r\n```\r\nyo jhipster\r\ndocker-compose build\r\ndocker-compose up -d\r\ndocker exec -it <name or id of the container> init\r\nmvn spring-boot:run\r\n```\r\n\r\n**Prerequisite** :\r\n- have docker & docker-compose installed\r\n\r\n**Improvements** :\r\n- improve the cassandra : I don't like my solution\r\n  - Maybe rework the entrypoint.sh ?\r\n  - Provide a jhipster/cassandra in docker-hub ?\r\n- add elasticsearch\r\n- add hazelcast\r\n- add oracle\r\n- work on volumes, because it's different with Mac / Windows. At the moment, the volume is commented in docker-compose.yml file\r\n- add different docker-compose with different profile\r\n\r\n**Tests** :\r\nI tested the generator with linuxmint and ubuntu, I don't have OSX or Windows, sorry...\r\nProbably on Mac or Windows, you have to edit your application-dev.xml after `docker-compose up` ?\r\n\r\nI hope it will help the project.\r\nThanks @jdubois and all contributors for making JHipster a so cool project.\r\n","created_at":"2015-09-22T18:13:37Z","updated_at":"2015-09-22T18:13:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/2032/commits","review_comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/2032/comments","review_comment_url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2032/comments","statuses_url":"https://api.github.com/repos/jhipster/generator-jhipster/statuses/0bdfdf964c9d28972aca19377475ae7756ec6b09","head":{"label":"pascalgrimaud:master","ref":"master","sha":"0bdfdf964c9d28972aca19377475ae7756ec6b09","user":{"login":"pascalgrimaud","id":9156882,"avatar_url":"https://avatars.githubusercontent.com/u/9156882?v=3","gravatar_id":"","url":"https://api.github.com/users/pascalgrimaud","html_url":"https://github.com/pascalgrimaud","followers_url":"https://api.github.com/users/pascalgrimaud/followers","following_url":"https://api.github.com/users/pascalgrimaud/following{/other_user}","gists_url":"https://api.github.com/users/pascalgrimaud/gists{/gist_id}","starred_url":"https://api.github.com/users/pascalgrimaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascalgrimaud/subscriptions","organizations_url":"https://api.github.com/users/pascalgrimaud/orgs","repos_url":"https://api.github.com/users/pascalgrimaud/repos","events_url":"https://api.github.com/users/pascalgrimaud/events{/privacy}","received_events_url":"https://api.github.com/users/pascalgrimaud/received_events","type":"User","site_admin":false},"repo":{"id":33155083,"name":"generator-jhipster","full_name":"pascalgrimaud/generator-jhipster","owner":{"login":"pascalgrimaud","id":9156882,"avatar_url":"https://avatars.githubusercontent.com/u/9156882?v=3","gravatar_id":"","url":"https://api.github.com/users/pascalgrimaud","html_url":"https://github.com/pascalgrimaud","followers_url":"https://api.github.com/users/pascalgrimaud/followers","following_url":"https://api.github.com/users/pascalgrimaud/following{/other_user}","gists_url":"https://api.github.com/users/pascalgrimaud/gists{/gist_id}","starred_url":"https://api.github.com/users/pascalgrimaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascalgrimaud/subscriptions","organizations_url":"https://api.github.com/users/pascalgrimaud/orgs","repos_url":"https://api.github.com/users/pascalgrimaud/repos","events_url":"https://api.github.com/users/pascalgrimaud/events{/privacy}","received_events_url":"https://api.github.com/users/pascalgrimaud/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pascalgrimaud/generator-jhipster","description":"Hipster stack for Java developers. Yeoman + Maven + Spring + AngularJS in one handy generator.","fork":true,"url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster","forks_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/forks","keys_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/teams","hooks_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/hooks","issue_events_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/issues/events{/number}","events_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/events","assignees_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/assignees{/user}","branches_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/branches{/branch}","tags_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/tags","blobs_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/git/refs{/sha}","trees_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/statuses/{sha}","languages_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/languages","stargazers_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/stargazers","contributors_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/contributors","subscribers_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/subscribers","subscription_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/subscription","commits_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/commits{/sha}","git_commits_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/git/commits{/sha}","comments_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/comments{/number}","issue_comment_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/issues/comments{/number}","contents_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/contents/{+path}","compare_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/merges","archive_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/downloads","issues_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/issues{/number}","pulls_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/pulls{/number}","milestones_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/milestones{/number}","notifications_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/labels{/name}","releases_url":"https://api.github.com/repos/pascalgrimaud/generator-jhipster/releases{/id}","created_at":"2015-03-31T00:10:21Z","updated_at":"2015-03-31T00:10:22Z","pushed_at":"2015-09-22T18:11:26Z","git_url":"git://github.com/pascalgrimaud/generator-jhipster.git","ssh_url":"git@github.com:pascalgrimaud/generator-jhipster.git","clone_url":"https://github.com/pascalgrimaud/generator-jhipster.git","svn_url":"https://github.com/pascalgrimaud/generator-jhipster","homepage":"http://jhipster.github.io","size":7412,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"jhipster:master","ref":"master","sha":"a9e3ecd8b62a2faae1d717e4ca72300d2a125099","user":{"login":"jhipster","id":6059488,"avatar_url":"https://avatars.githubusercontent.com/u/6059488?v=3","gravatar_id":"","url":"https://api.github.com/users/jhipster","html_url":"https://github.com/jhipster","followers_url":"https://api.github.com/users/jhipster/followers","following_url":"https://api.github.com/users/jhipster/following{/other_user}","gists_url":"https://api.github.com/users/jhipster/gists{/gist_id}","starred_url":"https://api.github.com/users/jhipster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhipster/subscriptions","organizations_url":"https://api.github.com/users/jhipster/orgs","repos_url":"https://api.github.com/users/jhipster/repos","events_url":"https://api.github.com/users/jhipster/events{/privacy}","received_events_url":"https://api.github.com/users/jhipster/received_events","type":"Organization","site_admin":false},"repo":{"id":13753636,"name":"generator-jhipster","full_name":"jhipster/generator-jhipster","owner":{"login":"jhipster","id":6059488,"avatar_url":"https://avatars.githubusercontent.com/u/6059488?v=3","gravatar_id":"","url":"https://api.github.com/users/jhipster","html_url":"https://github.com/jhipster","followers_url":"https://api.github.com/users/jhipster/followers","following_url":"https://api.github.com/users/jhipster/following{/other_user}","gists_url":"https://api.github.com/users/jhipster/gists{/gist_id}","starred_url":"https://api.github.com/users/jhipster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhipster/subscriptions","organizations_url":"https://api.github.com/users/jhipster/orgs","repos_url":"https://api.github.com/users/jhipster/repos","events_url":"https://api.github.com/users/jhipster/events{/privacy}","received_events_url":"https://api.github.com/users/jhipster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jhipster/generator-jhipster","description":"Hipster stack for Java developers. Yeoman + Maven + Spring + AngularJS in one handy generator.","fork":false,"url":"https://api.github.com/repos/jhipster/generator-jhipster","forks_url":"https://api.github.com/repos/jhipster/generator-jhipster/forks","keys_url":"https://api.github.com/repos/jhipster/generator-jhipster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhipster/generator-jhipster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhipster/generator-jhipster/teams","hooks_url":"https://api.github.com/repos/jhipster/generator-jhipster/hooks","issue_events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/events{/number}","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/events","assignees_url":"https://api.github.com/repos/jhipster/generator-jhipster/assignees{/user}","branches_url":"https://api.github.com/repos/jhipster/generator-jhipster/branches{/branch}","tags_url":"https://api.github.com/repos/jhipster/generator-jhipster/tags","blobs_url":"https://api.github.com/repos/jhipster/generator-jhipster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhipster/generator-jhipster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhipster/generator-jhipster/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhipster/generator-jhipster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhipster/generator-jhipster/statuses/{sha}","languages_url":"https://api.github.com/repos/jhipster/generator-jhipster/languages","stargazers_url":"https://api.github.com/repos/jhipster/generator-jhipster/stargazers","contributors_url":"https://api.github.com/repos/jhipster/generator-jhipster/contributors","subscribers_url":"https://api.github.com/repos/jhipster/generator-jhipster/subscribers","subscription_url":"https://api.github.com/repos/jhipster/generator-jhipster/subscription","commits_url":"https://api.github.com/repos/jhipster/generator-jhipster/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhipster/generator-jhipster/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhipster/generator-jhipster/contents/{+path}","compare_url":"https://api.github.com/repos/jhipster/generator-jhipster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhipster/generator-jhipster/merges","archive_url":"https://api.github.com/repos/jhipster/generator-jhipster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhipster/generator-jhipster/downloads","issues_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues{/number}","pulls_url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls{/number}","milestones_url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones{/number}","notifications_url":"https://api.github.com/repos/jhipster/generator-jhipster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/labels{/name}","releases_url":"https://api.github.com/repos/jhipster/generator-jhipster/releases{/id}","created_at":"2013-10-21T20:07:22Z","updated_at":"2015-09-22T13:07:17Z","pushed_at":"2015-09-22T18:13:37Z","git_url":"git://github.com/jhipster/generator-jhipster.git","ssh_url":"git@github.com:jhipster/generator-jhipster.git","clone_url":"https://github.com/jhipster/generator-jhipster.git","svn_url":"https://github.com/jhipster/generator-jhipster","homepage":"http://jhipster.github.io","size":17551,"stargazers_count":2716,"watchers_count":2716,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":607,"mirror_url":null,"open_issues_count":48,"forks":607,"open_issues":48,"watchers":2716,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/2032"},"html":{"href":"https://github.com/jhipster/generator-jhipster/pull/2032"},"issue":{"href":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2032"},"comments":{"href":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2032/comments"},"review_comments":{"href":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/2032/comments"},"review_comment":{"href":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/2032/commits"},"statuses":{"href":"https://api.github.com/repos/jhipster/generator-jhipster/statuses/0bdfdf964c9d28972aca19377475ae7756ec6b09"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":65,"deletions":0,"changed_files":3}}