{"id":16070843,"url":"https://github.com/dennis-every/rails-on-docker","last_synced_at":"2026-05-10T02:52:16.017Z","repository":{"id":139630199,"uuid":"594859372","full_name":"dennis-every/rails-on-docker","owner":"dennis-every","description":"Dockerizing a Ruby on Rails application","archived":false,"fork":false,"pushed_at":"2023-01-30T01:43:53.000Z","size":46,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T20:59:34.686Z","etag":null,"topics":["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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dennis-every.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-29T21:06:41.000Z","updated_at":"2023-07-06T19:16:29.000Z","dependencies_parsed_at":"2023-07-23T06:45:11.336Z","dependency_job_id":null,"html_url":"https://github.com/dennis-every/rails-on-docker","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/dennis-every%2Frails-on-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennis-every%2Frails-on-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennis-every%2Frails-on-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dennis-every%2Frails-on-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dennis-every","download_url":"https://codeload.github.com/dennis-every/rails-on-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318746,"owners_count":20919483,"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":["docker","rails","ruby"],"created_at":"2024-10-09T07:20:27.837Z","updated_at":"2026-05-10T02:52:10.979Z","avatar_url":"https://github.com/dennis-every.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# Dockerizing a Ruby on Rails Application\n\n  \u003cbr\u003e\n\u003c/div\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\n## 📗 Table of Contents\n\n- [📗 Table of Contents](#-table-of-contents)\n- [📖 About this project ](#-about-project-)\n  - [🛠 Built With ](#-built-with-)\n    - [Tech Stack ](#tech-stack-)\n    - [Key Features ](#key-features-)\n  - [💻 Getting Started ](#-getting-started-)\n    - [Setup](#setup)\n    - [Usage](#usage)\n    - [Build steps](#steps)\n  - [👥 Author ](#-author-)\n  - [📝 License ](#-license-)\n\n\u003cbr\u003e\n\u003c!-- PROJECT DESCRIPTION --\u003e\n\n# 📖 Dockerizing a Ruby on Rails application \u003ca name=\"about-project\"\u003e\u003c/a\u003e\n\nThis is a demo application to show how to use Docker to containerize a Ruby on Rails application.\n\n\u003cbr\u003e\n\n## 🛠 Built With \u003ca name=\"built-with\"\u003e\u003c/a\u003e\n\n\n### Tech Stack \u003ca name=\"tech-stack\"\u003e\u003c/a\u003e\n\n  \u003cul\u003e\n    \u003cli\u003eRuby on Rails\u003c/li\u003e\n    \u003cli\u003ePostgreSql\u003c/li\u003e\n    \u003cli\u003ePuma\u003c/li\u003e\n    \u003cli\u003eDocker\u003c/li\u003e\n  \u003c/ul\u003e\n \n\n\u003cbr\u003e\n\u003c!-- Features --\u003e\n\n### Key Features \u003ca name=\"key-features\"\u003e\u003c/a\u003e\n\n- **Use Docker to containerize a Ruby on Rails application**\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n\n## 💻 Getting Started \u003ca name=\"getting-started\"\u003e\u003c/a\u003e\n\n\u003cbr\u003e\n\n### Setup\n\n- install Docker from docker.com\n- git clone git@github.com:dennis-every/rails-on-docker.git\n- cd rails-on-docker\n\n\u003cbr\u003e\n\n### Usage\n\n- docker compose up\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n### Build steps\n\n\n- Create Dockerfile (refer to the file in repo)\n- Create a Gemfile with rails version (refer to the file in repo)\n- Create an empty Gemfile.lock\n- Create an entrypoint.sh script to fix a Rails-specific issue that prevents the server from restarting when a certain server.pid file pre-exists. This script will be executed every time the container gets started (refer to this file in repo)\n- Create a docker-compose.yml file (refer to the file in repo)\n- Generate the rails app: docker compose run --no-deps web rails new . --force --database=postgresql\n- docker compose build\n- Update database.yml (refer to the file in repo)\n- Boot the app with: docker compose up\n- Create the database in another terminal, run: docker compose run web rake db:create\n- Go to http://localhost:3000 on a web browser to see the Rails welcome page\n- To stop the application, run docker compose down\n- References: https://github.com/docker/awesome-compose/tree/master/official-documentation-samples/rails/\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- AUTHOR --\u003e\n\n## 👥 Author \u003ca name=\"author\"\u003e\u003c/a\u003e\n\n👤 **Dennis Every**\n\n- GitHub: [@dennis-every](https://github.com/dennis-every)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n\n## 📝 License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nThis project is [MIT](./MIT.md) licensed\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennis-every%2Frails-on-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennis-every%2Frails-on-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennis-every%2Frails-on-docker/lists"}