{"id":13835650,"url":"https://github.com/gmontard/dockrails","last_synced_at":"2025-07-10T10:30:45.563Z","repository":{"id":62557345,"uuid":"87838337","full_name":"gmontard/dockrails","owner":"gmontard","description":"Simple CLI to Generate and Run a Rails environment with Docker (in Development) !","archived":false,"fork":false,"pushed_at":"2019-04-17T09:32:21.000Z","size":31,"stargazers_count":282,"open_issues_count":3,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-03T02:11:12.580Z","etag":null,"topics":["cli","docker-environment","rails"],"latest_commit_sha":null,"homepage":"https://mythoughts.io/using-rails-and-docker-in-development-making-it-play-nice-together-41ef20ef78b0","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/gmontard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-10T17:27:37.000Z","updated_at":"2024-03-02T02:02:34.000Z","dependencies_parsed_at":"2022-11-03T06:30:28.857Z","dependency_job_id":null,"html_url":"https://github.com/gmontard/dockrails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gmontard/dockrails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmontard%2Fdockrails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmontard%2Fdockrails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmontard%2Fdockrails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmontard%2Fdockrails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmontard","download_url":"https://codeload.github.com/gmontard/dockrails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmontard%2Fdockrails/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264140028,"owners_count":23563330,"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":["cli","docker-environment","rails"],"created_at":"2024-08-04T14:01:07.498Z","updated_at":"2025-07-10T10:30:45.312Z","avatar_url":"https://github.com/gmontard.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/dockrails.svg)](https://badge.fury.io/rb/dockrails) [![Build Status](https://travis-ci.org/gmontard/dockrails.svg?branch=master)](https://travis-ci.org/gmontard/dockrails) [![Coverage Status](https://coveralls.io/repos/github/gmontard/dockrails/badge.svg?branch=master)](https://coveralls.io/github/gmontard/dockrails?branch=master)\n\n![](http://i.imgur.com/GpOR4F5.png)\n\nSimple CLI to Generate and Run a Rails environment with Docker!   \n---\n(using Docker, Docker-Compose and Docker-Sync behind the scenes)\n\n### About\n\nMany of us have been struggling to setup a **usable** and **efficient** docker development environment for Rails App\n\nThis Gem include a CLI that generate your docker environment then provide a simple command to run it.\n\nWeb/Job containers **sync code base from your Rails App in realtime**, letting you code on you Mac and run in the same time everything from the container\n\nBundler Gems, DB and Redis data are **persisted across restart** and you can use **ByeBug or Pry out of the box** easily.\n\nCurrently the CLI offers a Docker environment with the option of:\n- PGSQL or MYSQL Database\n- Redis Database\n- Web and Job (Sidekiq) container\n\nYou can expand this scope very easily by modifying the output docker files generated.\n\n[![asciicast](https://asciinema.org/a/26tls9e5bh860ai91d7grkkf6.png)](https://asciinema.org/a/26tls9e5bh860ai91d7grkkf6)\n\n### Install\n\n```gem install dockrails```\n\n### Requirements\n\n- [Docker Toolbox](https://www.docker.com/products/docker-toolbox)\n- ```brew install unison```\n\n### Commands\n\nCreate a folder on top of your Rails App, add your App inside it, then run:\n- ```dockrails init```\n\n*Answer the different questions to build your docker environment and then you are ready to run it!*\n\nStart the containers:\n- ```dockrails start```\n\nStop/Remove the containers:\n- ```dockrails clean```\n\nShow live tail of logs:\n- ```dockrails logs```\n\nShow live tail of logs for a container:\n- ```dockrails logs web```\n\nBuild/Rebuild the docker image:\n- ```dockrails build```\n\nRestart a container:\n- ```dockrails restart CONTAINER```\n\nRun a command inside a container:\n- ```dockrails run CONTAINER COMMAND``` (ex: dockrails run web bundle install)\n\nAttach TTY to a container (ex: for debugging with ByeBug or Pry):\n- ```dockrails attach CONTAINER```\n\n\n### Folder structure\n\n```\nmy-docker-rails-env/\n  bundle/\n  data/\n    sql/\n    redis/\n  Dockerfile\n  docker-compose.yml\n  docker-sync.yml\n  YOUR_RAILS_APP/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmontard%2Fdockrails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmontard%2Fdockrails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmontard%2Fdockrails/lists"}