{"id":14955437,"url":"https://github.com/zazk/rails-6-docker-alpine","last_synced_at":"2025-09-30T13:30:51.638Z","repository":{"id":137211994,"uuid":"205732695","full_name":"zazk/Rails-6-Docker-Alpine","owner":"zazk","description":"Lightweight Rails 6 App over Docker Alpine images","archived":false,"fork":false,"pushed_at":"2020-04-09T21:53:07.000Z","size":3,"stargazers_count":20,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T11:21:04.404Z","etag":null,"topics":["docker","docker-compose","rails","rails6"],"latest_commit_sha":null,"homepage":"","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/zazk.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":"2019-09-01T21:10:04.000Z","updated_at":"2023-09-08T17:57:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c925918-c62f-4332-9ac4-02d2c306ab1f","html_url":"https://github.com/zazk/Rails-6-Docker-Alpine","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"07e5a7156c744f1607f0115c62b6c14db4160751"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazk%2FRails-6-Docker-Alpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazk%2FRails-6-Docker-Alpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazk%2FRails-6-Docker-Alpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zazk%2FRails-6-Docker-Alpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zazk","download_url":"https://codeload.github.com/zazk/Rails-6-Docker-Alpine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234737856,"owners_count":18879180,"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","docker-compose","rails","rails6"],"created_at":"2024-09-24T13:11:09.416Z","updated_at":"2025-09-30T13:30:46.378Z","avatar_url":"https://github.com/zazk.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails 6 Docker Alpine\nDocker image size\n\n```sh\n$ docker images\nREPOSITORY                                 TAG                       SIZE\nblitz_web                                  latest                    390MB\n\n```\n\n### Steps\n\n1. Clone \u0026 Create\n\n```sh\ngit clone git@github.com:zazk/Rails-6-Docker-Alpine.git\n```\n\nCreate a new Rails application under the repository directory\n\n```sh\ncd Rails-6-Docker-Alpine\nrails new . --webpack --database=postgresql\n```\n\n2. Configure:\n\nModify your database configuration to use the postgresql container configuration:\n\n```yaml\ndefault: \u0026default\n  adapter: postgresql\n  encoding: unicode\n  pool: \u003c%= ENV.fetch(\"RAILS_MAX_THREADS\") { 5 } %\u003e\n  host: db\n  username: postgres\n```\n\nRemove check Yarn\n\n```yaml\n# ./config/environments/development.rb\n# Disable Yarn Check\nconfig.webpacker.check_yarn_integrity = false\n```\n\n3. Build the project:\n\n```sh\ndocker-compose build\n```\n\n4. Create the database and run the migrations:\n\n```sh\ndocker-compose run --rm web bin/rails db:create\ndocker-compose run --rm web bin/rails db:migrate\n```\n\n5. Run the app:\n\n```sh\ndocker-compose up\n```\n\nVisit your application\n\n```\nhttp://localhost:3000\n```\n\n### Troubleshooting\n\n1. If you have probles with `pg` gem you should install Postgres before. On Mac `brew install postgres`\n2. Ruby Version `2.5.3`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzazk%2Frails-6-docker-alpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzazk%2Frails-6-docker-alpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzazk%2Frails-6-docker-alpine/lists"}