{"id":16056120,"url":"https://github.com/ryichk/rails-mysql-on-docker","last_synced_at":"2026-02-09T17:01:21.927Z","repository":{"id":40009100,"uuid":"278822692","full_name":"ryichk/rails-mysql-on-docker","owner":"ryichk","description":"Rails Mysql on Docker template.","archived":false,"fork":false,"pushed_at":"2023-01-19T22:39:03.000Z","size":97,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-28T06:10:53.581Z","etag":null,"topics":["docker","mysql","mysql8","rails","rails7","rspec","rubocop","ruby","ruby3","terraform"],"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/ryichk.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":"2020-07-11T08:42:14.000Z","updated_at":"2022-02-06T15:59:28.000Z","dependencies_parsed_at":"2023-01-28T23:45:42.224Z","dependency_job_id":null,"html_url":"https://github.com/ryichk/rails-mysql-on-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/ryichk/rails-mysql-on-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryichk%2Frails-mysql-on-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryichk%2Frails-mysql-on-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryichk%2Frails-mysql-on-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryichk%2Frails-mysql-on-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryichk","download_url":"https://codeload.github.com/ryichk/rails-mysql-on-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryichk%2Frails-mysql-on-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29273139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"last_error":"SSL_read: 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","mysql","mysql8","rails","rails7","rspec","rubocop","ruby","ruby3","terraform"],"created_at":"2024-10-09T02:40:32.091Z","updated_at":"2026-02-09T17:01:21.909Z","avatar_url":"https://github.com/ryichk.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n## プロジェクト名を変更\n\nプロジェクトの全ファイルを`app_name`でグレップし、任意のプロジェクト名で置換してください。\n\n## .envファイル作成\n\n`.env.sample`をコピーして`.env`ファイルを作成してください。\n\n```bash\n$ cp .env.sample .env\n```\n\n.envファイルの下記環境変数の値を設定してください。\n\n- `MYSQL_DATABASE`\n\n- `MYSQL_ROOT_USER`\n\n- `MYSQL_ROOT_PASSWORD`\n\n## Docker起動\n\n```bash\n$ docker-compose build\n$ docker-compose up\n```\n\n## DB作成\n\n```bash\n$ docker-compose exec app bin/rails db:create\n```\n\n## credentials.yml.encとmaster.kyの作成\n\n### ローカルPCにRuby3.1.0をインストール\n\n```bash\n$ EDITOR=vim bin/rails credentials:edit\n```\n\n## Rspecの実行\n\n```bash\n$ docker-compose exec app bundle exec rspec\n```\n\n## Dockerfileやdocker-compose.ymlの変更を反映\n\n```bash\n$ docker-compose up --build\n```\n\n## ローカルからMySQLコンテナに接続\n\n```bash\n$ mysql -u root -p -h localhost -P 3306 --protocol=tcp\n```\n\n## 参照\n\n[Rails5+Mysql on Docker: Qiita](https://qiita.com/azul915/items/5b7063cbc80192343fc0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryichk%2Frails-mysql-on-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryichk%2Frails-mysql-on-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryichk%2Frails-mysql-on-docker/lists"}