{"id":13424678,"url":"https://github.com/pacuna/rails5-docker-alpine","last_synced_at":"2025-07-18T05:08:54.473Z","repository":{"id":73891808,"uuid":"114461056","full_name":"pacuna/rails5-docker-alpine","owner":"pacuna","description":"Lightweight Docker development environment for Rails using Alpine Linux","archived":false,"fork":false,"pushed_at":"2018-12-24T03:53:10.000Z","size":7,"stargazers_count":71,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T01:13:19.299Z","etag":null,"topics":["alpine","alpine-linux","containers","docker","lightweight","postgresql","rails","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/pacuna.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}},"created_at":"2017-12-16T12:59:17.000Z","updated_at":"2024-01-13T23:57:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"d39e2657-8938-4138-a8f7-66bad07d6cb6","html_url":"https://github.com/pacuna/rails5-docker-alpine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pacuna/rails5-docker-alpine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacuna%2Frails5-docker-alpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacuna%2Frails5-docker-alpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacuna%2Frails5-docker-alpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacuna%2Frails5-docker-alpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pacuna","download_url":"https://codeload.github.com/pacuna/rails5-docker-alpine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacuna%2Frails5-docker-alpine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265703633,"owners_count":23814044,"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":["alpine","alpine-linux","containers","docker","lightweight","postgresql","rails","ruby","ruby-on-rails"],"created_at":"2024-07-31T00:00:57.717Z","updated_at":"2025-07-18T05:08:54.448Z","avatar_url":"https://github.com/pacuna.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# rails5-docker-alpine\n\nThis is a very lightweight Docker image based on Ruby Alpine to run a Rails 5\napplication.\nI also provide a docker-compose file to run your project using a PostgreSQL\ndatabase.\n\n## Trying out the image\n\nClone the repository:\n\n```sh\ngit clone git@github.com:pacuna/rails5-docker-alpine.git\n```\n\nCreate a new Rails application under the repository directory\n\n```sh\ncd rails-docker-alpine\nrails new . --database=postgresql\n```\n\nModify your database configuration to use the postgresql container configuration:\n\n```yaml\ndefault: \u0026default\n  adapter: postgresql\n  encoding: unicode\n  # For details on connection pooling, see rails configuration guide\n  # http://guides.rubyonrails.org/configuring.html#database-pooling\n  pool: \u003c%= ENV.fetch(\"RAILS_MAX_THREADS\") { 5 } %\u003e\n  host: db\n  username: postgres\n```\n\nBuild the project:\n\n```sh\ndocker-compose build\n```\n\nCreate the database and run the migrations:\n\n```\ndocker-compose run --rm web bin/rails db:create\ndocker-compose run --rm web bin/rails db:migrate\n```\n\nRun the app:\n\n```sh\ndocker-compose up -d\n```\n\nVisit your application at localhost:3000.\n\nTested with:\n- Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]\n- Rails 5.2.2 (to create the new application)\n- Docker version 18.09.0, build 4d60db4\n- docker-compose version 1.23.1, build b02f1306\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacuna%2Frails5-docker-alpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacuna%2Frails5-docker-alpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacuna%2Frails5-docker-alpine/lists"}