{"id":28217476,"url":"https://github.com/x1wins/docker-postgres-rails","last_synced_at":"2026-05-06T03:34:51.111Z","repository":{"id":36630927,"uuid":"227902962","full_name":"x1wins/docker-postgres-rails","owner":"x1wins","description":"Docker postgresql init, run with rake in rails project","archived":false,"fork":false,"pushed_at":"2023-01-19T16:30:26.000Z","size":69,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-21T17:09:34.106Z","etag":null,"topics":["docker","docker-postgres","docker-postgres-rails","postgresql","rails","rake"],"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/x1wins.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}},"created_at":"2019-12-13T18:51:31.000Z","updated_at":"2019-12-20T07:06:47.000Z","dependencies_parsed_at":"2023-02-11T09:45:29.008Z","dependency_job_id":null,"html_url":"https://github.com/x1wins/docker-postgres-rails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x1wins/docker-postgres-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1wins%2Fdocker-postgres-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1wins%2Fdocker-postgres-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1wins%2Fdocker-postgres-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1wins%2Fdocker-postgres-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x1wins","download_url":"https://codeload.github.com/x1wins/docker-postgres-rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1wins%2Fdocker-postgres-rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["docker","docker-postgres","docker-postgres-rails","postgresql","rails","rake"],"created_at":"2025-05-18T00:12:28.970Z","updated_at":"2026-05-06T03:34:51.023Z","avatar_url":"https://github.com/x1wins.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## README\nWhen we begin new rails project,\u003cbr/\u003e\nalways need easy, fast database setting\u003cbr/\u003e\nDocker-postgres-rails gem easy, fast run PostgreSql database by docker without docker command and many environment var\n\n## Required\n* Your OS must be macOS or linux (Not support window, because using mkdir)\n* Installed Docker\n* Rails project must use PostgreSql (You can create new project using postgresql by this command : ```$ rails new [PORJECT_NAME] -d postgresql``` )\n* Your must input values of database, username, password, port in config/database.yml file (docker will use these values) \n\n## Getting Started\n1. Add gem in Gemfile\n   https://rubygems.org/gems/docker-postgres-rails\n   ```yaml\n   gem 'docker-postgres-rails', '~\u003e 0.0.1'\n   ```\n   OR\n   ```yaml\n   gem 'docker-postgres-rails', :git =\u003e \"git://github.com/x1wins/docker-postgres-rails.git\"\n   ```\n\n2. Generate docker_pg.rake\n   ```bash\n   $ rails generate docker_pg\n      identical  lib/tasks/docker_pg.rake\n   ```\n\n3. Set database, username, password, port in database.yml,\u003cbr/\u003e\n   Docker will use database, username, password, port in database.yml\n   ```yaml\n     database: docker_postgres_rails_development\n     username: docker_postgres_rails\n     password: mysecretpassword\n     host: localhost\n     port: 5432\n   ```\n\n4. Create database volume path\n   ```bash\n   $ rake docker:pg:init\n   ```\n\n5. Run dockerized PostgreSQL\n   ```bash\n   $ rake docker:pg:run\n   ```\n   ```bash\n   $ docker ps\n   CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES\n   4ec621c7914b        postgres            \"docker-entrypoint.s…\"   17 minutes ago      Up 17 minutes       0.0.0.0:5432-\u003e5432/tcp   docker_postgres_rails_development\n   ```\n\n## It's all\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx1wins%2Fdocker-postgres-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx1wins%2Fdocker-postgres-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx1wins%2Fdocker-postgres-rails/lists"}