{"id":18361154,"url":"https://github.com/progrhyme/compose-to-minikube","last_synced_at":"2026-05-19T10:06:53.877Z","repository":{"id":70989940,"uuid":"113675265","full_name":"progrhyme/compose-to-minikube","owner":"progrhyme","description":"Sample App Run by docker-compose and Kubernetes","archived":false,"fork":false,"pushed_at":"2017-12-23T02:51:17.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T18:55:09.261Z","etag":null,"topics":["docker-compose","kompose","minikube","sample"],"latest_commit_sha":null,"homepage":null,"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/progrhyme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-12-09T14:24:30.000Z","updated_at":"2023-03-12T09:34:50.000Z","dependencies_parsed_at":"2023-02-22T07:30:29.754Z","dependency_job_id":null,"html_url":"https://github.com/progrhyme/compose-to-minikube","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrhyme%2Fcompose-to-minikube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrhyme%2Fcompose-to-minikube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrhyme%2Fcompose-to-minikube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progrhyme%2Fcompose-to-minikube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/progrhyme","download_url":"https://codeload.github.com/progrhyme/compose-to-minikube/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248155632,"owners_count":21056676,"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-compose","kompose","minikube","sample"],"created_at":"2024-11-05T22:32:06.504Z","updated_at":"2026-05-19T10:06:53.836Z","avatar_url":"https://github.com/progrhyme.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compose-to-minikube\n\nThis is a sample Rails application which is run by both\n[docker-compose](https://docs.docker.com/compose/) and\n[Kubernetes](https://kubernetes.io/).\n\n# Prerequisites\n\n- [Docker](https://www.docker.com/)\n- Kubernetes cluster. [Minikube](https://github.com/kubernetes/minikube) is handy for this sample.\n- [kubectl](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-options/)\n- Optional: [kompose](http://kompose.io)\n\n# Prepare Local Registry\n\nUse https://hub.docker.com/_/registry/ like following command:\n\n```sh\ndocker run -d -p 5000:5000 \\\n  -v ~/.dockerregistry:/var/lib/registry \\\n  --restart always \\\n  --name registry \\\n  registry:2\n```\n\n# Run Application\n\n## docker-compose\n\n```sh\ndocker-compose up\ndocker-compose exec rails rake db:migrate\n```\n\n## Kubernetes\n\n### (1) By manual configuration\n\n```sh\nkubectl apply -f k8s-config.yaml\nkubectl apply -f k8s-apps.yaml\nkubectl get pods\nkubectl exec -it app-XXXXXXXXX-XXXXX rake db:migrate # Specify your pod's name\n```\n\n### (2) By kompose\n\n```sh\nkompose up\nkubectl get pods\nkubectl exec -it rails-XXXXXXXXX-XXXXX rake db:migrate # Specify your pod's name\n```\n\n# See Also\n\n- [Docker ComposeからMinikube + Komposeに移行してみよう - Qiita](https://qiita.com/progrhyme/items/116948c9fef37f3e995b)\n\n# License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrhyme%2Fcompose-to-minikube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrhyme%2Fcompose-to-minikube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrhyme%2Fcompose-to-minikube/lists"}