{"id":20887195,"url":"https://github.com/yosriady/docker-rails","last_synced_at":"2025-03-12T18:17:52.789Z","repository":{"id":35445575,"uuid":"39712207","full_name":"yosriady/docker-rails","owner":"yosriady","description":"Dockerized Rails Application https://docs.docker.com/compose/rails/","archived":false,"fork":false,"pushed_at":"2015-07-26T05:53:41.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T11:16:44.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"gatsbyjs/gatsby","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yosriady.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-26T03:29:22.000Z","updated_at":"2015-07-26T03:31:30.000Z","dependencies_parsed_at":"2022-06-27T14:02:15.991Z","dependency_job_id":null,"html_url":"https://github.com/yosriady/docker-rails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosriady%2Fdocker-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosriady%2Fdocker-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosriady%2Fdocker-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosriady%2Fdocker-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yosriady","download_url":"https://codeload.github.com/yosriady/docker-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243268088,"owners_count":20263803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T08:19:26.631Z","updated_at":"2025-03-12T18:17:52.763Z","avatar_url":"https://github.com/yosriady.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-rails\n========\n\n\u003e This README would normally document whatever steps are necessary to get the\napplication up and running.\n\n## Getting Started\n\nHave **Docker** and **docker-compose** [installed](https://docs.docker.com/compose/install/).\n\nFork this project, and do a `git clone` from your fork.\n\n```\ncd docker-rails\ndocker-compose up\n```\n\nIf all’s well, you should see some PostgreSQL output, and then—after a few seconds—the familiar refrain:\n\n```\nmyapp_web_1 | [2014-01-17 17:16:29] INFO  WEBrick 1.3.1\nmyapp_web_1 | [2014-01-17 17:16:29] INFO  ruby 2.2.0 (2014-12-25) [x86_64-linux-gnu]\nmyapp_web_1 | [2014-01-17 17:16:29] INFO  WEBrick::HTTPServer#start: pid=1 port=3000\n```\n\nFinally, you need to create the database. Ctrl-C and run:\n\n```\ndocker-compose run web rake db:create\n```\n\nNote that for rails and rake commands, you will need to prefix it with `docker-compose run web ...`\n\nRun `docker-compose up` again and the Rails application should be running at `\u003ccontainer-ip\u003e:3000`, where `\u003ccontainer-ip \u003e` can obtained from `docker inspect \u003ccontainer id\u003e` or `boot2docker ip`.\n\nA normal development workflow is:\n\n- You run `docker-compose up`\n- You preview the running rails application\n- You make changes to the rails code\n- Restart the rails app by re-running `docker-compose up`\n- Your newly changed application runs","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosriady%2Fdocker-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyosriady%2Fdocker-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosriady%2Fdocker-rails/lists"}