{"id":25453295,"url":"https://github.com/pablovallejo/docker-rails","last_synced_at":"2026-05-08T00:37:32.158Z","repository":{"id":150042390,"uuid":"70997313","full_name":"PabloVallejo/docker-rails","owner":"PabloVallejo","description":":rocket: Docker container for Ruby on Rails 5","archived":false,"fork":false,"pushed_at":"2018-01-24T14:29:56.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T14:50:43.228Z","etag":null,"topics":["containers","docker","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PabloVallejo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-10-15T15:48:10.000Z","updated_at":"2023-03-21T10:47:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"aba2fd4c-2c2d-4348-9002-d94a479d009d","html_url":"https://github.com/PabloVallejo/docker-rails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PabloVallejo/docker-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloVallejo%2Fdocker-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloVallejo%2Fdocker-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloVallejo%2Fdocker-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloVallejo%2Fdocker-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PabloVallejo","download_url":"https://codeload.github.com/PabloVallejo/docker-rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloVallejo%2Fdocker-rails/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263771731,"owners_count":23508976,"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":["containers","docker","rails","ruby"],"created_at":"2025-02-17T23:54:35.468Z","updated_at":"2026-05-08T00:37:27.121Z","avatar_url":"https://github.com/PabloVallejo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails 5 Docker boilerplate\n\nBoilerplate for Rails projects using Docker.\n\n\n## Building the project\n\nRun the following command to create a new Rails project scaffold with a postgres database.\n\n```bash\ndocker-compose run web rails new . --force --database=postgresql --skip-bundle\n```\n\nIn order to have a JavaScript runtime you have to uncomment this line in your Gemfile.\n```\ngem 'therubyracer', platforms: :ruby\n```\n\nAfter that build the project in order to install new Gems.\n\n```bash\ndocker-compose build\n```\n\n## Database\n\nUse the following configuration for your **development** and **test** databases.\n\n```yaml\ndevelopment: \u0026default\n  adapter: postgresql\n  encoding: unicode\n  database: postgres\n  pool: 5\n  username: postgres\n  password:\n  host: db\n\ntest:\n  \u003c\u003c: *default\n  database: myapp_test\n```\n\nAfter this you can run the project and get ready to create the database.\n\n```bash\n$ docker-compose up\n```\n\nRun this command to create the database.\n\n```bash\n$ docker-compose run web rake db:create\n```\n\n## Running\n\nAt this point your application must be running on localhost on port 3000, so head over to it and take a look!\n\n[http://localhost:3000](http://localhost:3000)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablovallejo%2Fdocker-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpablovallejo%2Fdocker-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablovallejo%2Fdocker-rails/lists"}