{"id":20787689,"url":"https://github.com/stemount/ruby-on-rails-docker-compose-template","last_synced_at":"2025-05-05T16:16:26.326Z","repository":{"id":38439870,"uuid":"321777907","full_name":"stemount/ruby-on-rails-docker-compose-template","owner":"stemount","description":"A docker-compose template of a Ruby on Rails application using Ruby 2.7.2 and Rails 6.x","archived":false,"fork":false,"pushed_at":"2023-03-09T00:58:32.000Z","size":2930,"stargazers_count":5,"open_issues_count":11,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T16:16:19.046Z","etag":null,"topics":["ruby","ruby6"],"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/stemount.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null},"funding":{"github":["stemount"]}},"created_at":"2020-12-15T20:11:07.000Z","updated_at":"2023-07-02T21:51:27.000Z","dependencies_parsed_at":"2023-01-28T23:31:46.878Z","dependency_job_id":null,"html_url":"https://github.com/stemount/ruby-on-rails-docker-compose-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemount%2Fruby-on-rails-docker-compose-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemount%2Fruby-on-rails-docker-compose-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemount%2Fruby-on-rails-docker-compose-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemount%2Fruby-on-rails-docker-compose-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stemount","download_url":"https://codeload.github.com/stemount/ruby-on-rails-docker-compose-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252531874,"owners_count":21763292,"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":["ruby","ruby6"],"created_at":"2024-11-17T14:59:13.803Z","updated_at":"2025-05-05T16:16:26.300Z","avatar_url":"https://github.com/stemount.png","language":"Ruby","funding_links":["https://github.com/sponsors/stemount"],"categories":[],"sub_categories":[],"readme":"![](.readme/rails.png)\n\n#### → Getting started with this project\n\nThis uses `docker-compose` for simplicity of getting together a Ruby on Rails 6 application with a PostgreSQL database.\n\n**Start containers**\n\n```bash\ndocker-compose up -d\n```\n\n**Restart Ruby instance**\n\n```bash\ndocker-compose restart web\n```\n\n**Destroy PostgreSQL databases if you mess up or similar reason**\n\nThis nukes the `PGDATA` contents including databases, passwords et al.\n\nUseful if you are testing migrations or are prototyping your database model.\n\n```bash\nrm -rf ./tmp/db/* \u0026\u0026 docker-compose up --force-recreate postgres\n```\n\n**Stop containers**\n\n```bash\ndocker-compose stop\n```\n\n---\n\n#### → Start Developing\n\nIt is required to create the databases using Rails.\n\nIt is recommended to use migration files over any sort of hacks.\n\nIt is recommended to have seed data to test your models too.\n\n- **How to interact with the Rails docker instance**\n\n  ```bash\n  docker-compose exec web /bin/bash\n  ```\n  \n  **These commands will be essential**\n  \n  - `rails db:create`\n  - `rails db:migrate`\n  - `rails db:seed`\n  \n---\n\n###### Technical Info\n\n**Rails version:** 6.1\n\n**Ruby version:** ruby 2.7.2\n\n**Base Linux distro:** Debian Buster\n\n###### Default settings\n\n**PostgreSQL User**: `root` **PostgreSQL Password**: `password`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstemount%2Fruby-on-rails-docker-compose-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstemount%2Fruby-on-rails-docker-compose-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstemount%2Fruby-on-rails-docker-compose-template/lists"}