{"id":20768961,"url":"https://github.com/ryanwi/rails8-on-docker","last_synced_at":"2026-04-24T19:33:36.914Z","repository":{"id":262123809,"uuid":"885977188","full_name":"ryanwi/rails8-on-docker","owner":"ryanwi","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-10T23:12:48.000Z","size":88,"stargazers_count":1,"open_issues_count":10,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T19:39:09.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ryanwi.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":"2024-11-09T21:30:12.000Z","updated_at":"2025-01-20T00:38:45.000Z","dependencies_parsed_at":"2025-03-11T19:34:57.241Z","dependency_job_id":"87cce2dd-daee-49e9-bd82-57f937ec1db7","html_url":"https://github.com/ryanwi/rails8-on-docker","commit_stats":null,"previous_names":["ryanwi/rails8-on-docker"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/ryanwi/rails8-on-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanwi%2Frails8-on-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanwi%2Frails8-on-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanwi%2Frails8-on-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanwi%2Frails8-on-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanwi","download_url":"https://codeload.github.com/ryanwi/rails8-on-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanwi%2Frails8-on-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32238594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-17T11:41:53.334Z","updated_at":"2026-04-24T19:33:36.900Z","avatar_url":"https://github.com/ryanwi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/ryanwi/rails8-on-docker/actions/workflows/ci.yml/badge.svg)](https://github.com/ryanwi/rails8-on-docker/actions/workflows/ci.yml)\n[![Docker](https://github.com/ryanwi/rails8-on-docker/actions/workflows/docker.yml/badge.svg)](https://github.com/ryanwi/rails8-on-docker/actions/workflows/docker.yml)\n\nStart here: https://github.com/ryanwi/rails8-on-docker/generate\n\n# Rails 8 on Docker demo application\n\n**NOTE:** There are also examples Rails 6 and Rails 7 applications working in Docker\n\n* [Rails 8 Applicaiton Docker Template](https://github.com/ryanwi/rails8-on-docker)\n* [Rails 7 Applicaiton Docker Template](https://github.com/ryanwi/rails7-on-docker)\n* [Rails 6 Application Docker Template](https://github.com/ryanwi/rails-on-docker)\n\n## Features\n\n* Rails 8\n* Ruby 3.3\n* Dockerfile and Docker Compose configuration\n* GitHub Actions with checks for\n  * tests\n  * Linting with Rubocop\n  * Security scans with [Brakeman](https://github.com/presidentbeef/brakeman) and [bundler-audit](https://github.com/rubysec/bundler-audit)\n  * Building and testing of a production Docker image\n* Dependabot for automated updates\n\n\n## Requirements\n\nPlease ensure you are using Docker Compose V2. This project relies on the `docker compose` command, not the previous `docker-compose` standalone program.\n\nhttps://docs.docker.com/compose/#compose-v2-and-the-new-docker-compose-command\n\nCheck your docker compose version with:\n```\n% docker compose version\nDocker Compose version v2.10.2\n```\n\n## Initial setup\n```\ndocker compose build\ndocker compose run --rm web bin/rails db:setup\n```\n\n## Running the Rails app\n```\ndocker compose up\n```\n\n## Running the Rails console\nWhen the app is already running with `docker-compose` up, attach to the container:\n```\ndocker compose exec web bin/rails c\n```\n\nWhen no container running yet, start up a new one:\n```\ndocker compose run --rm web bin/rails c\n```\n\n## Updating gems\n```\ndocker compose run --rm web bundle update\ndocker compose up --build\n```\n\n## Production build\n\n(adjust tags as needed)\n\n### with [BuildKit](https://docs.docker.com/build/buildkit/)\n```\nDOCKER_BUILDKIT=1 docker build --tag rails-on-docker --load .\n```\n\nTest the image can be used and Rails starts up, use a fake key for testing purposes only:\n```\ndocker run --rm --env SECRET_KEY_BASE=dummy rails-on-docker\n```\n\n### With legacy builder (no BuildKit)\n```\ndocker build --tag rails-on-docker .\n```\n\nTest the image can be used and Rails starts up, use a fake key for testing purposes only:\n```\ndocker run --rm --env SECRET_KEY_BASE=dummy rails-on-docker\n```\n\n## Deployment\n\nTODO\n\n## Credits/References\n\n### Rails with Docker\n* [Quickstart: Compose and Rails](https://github.com/docker/awesome-compose/tree/master/official-documentation-samples/rails/)\n* [Docker Rails Samples](https://docs.docker.com/samples/rails/)\n* [Docker for Rails Developers\nBuild, Ship, and Run Your Applications Everywhere](https://pragprog.com/titles/ridocker/docker-for-rails-developers/)\n* [Ruby on Whales:\nDockerizing Ruby and Rails development](https://evilmartians.com/chronicles/ruby-on-whales-docker-for-ruby-rails-development)\n* [Rails generator to produce Dockerfiles and related files](https://github.com/rubys/dockerfile-rails)\n* [docker init](https://docs.docker.com/engine/reference/commandline/init/)\n* [Rails 8 Dockerfile Generator Template](https://github.com/rails/rails/blob/main/railties/lib/rails/generators/rails/app/templates/Dockerfile.tt)\n\n## Author\n\n**Ryan Williams**\n\n- \u003chttps://www.ryanwilliams.dev\u003e\n- \u003chttps://bsky.app/profile/ryanwi.bsky.social\u003e\n- \u003chttps://hachyderm.io/@ryanwi\u003e\n- \u003chttps://github.com/ryanwi\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanwi%2Frails8-on-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanwi%2Frails8-on-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanwi%2Frails8-on-docker/lists"}