{"id":15118604,"url":"https://github.com/hakimamarullah/docker-kingdom","last_synced_at":"2026-01-19T11:32:24.970Z","repository":{"id":256239913,"uuid":"854695829","full_name":"hakimamarullah/docker-kingdom","owner":"hakimamarullah","description":"Kubernetes and Docker","archived":false,"fork":false,"pushed_at":"2024-09-29T07:25:40.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T18:52:49.383Z","etag":null,"topics":["docker","docker-compose","kubernetes","kubernetes-deployment","minikube","nginx","nginx-ing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/hakimamarullah.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":"2024-09-09T16:10:42.000Z","updated_at":"2024-09-29T07:25:43.000Z","dependencies_parsed_at":"2024-09-15T09:04:34.508Z","dependency_job_id":"84132c17-0e88-424b-866e-6e40545adab8","html_url":"https://github.com/hakimamarullah/docker-kingdom","commit_stats":null,"previous_names":["hakimamarullah/docker-kingdom"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hakimamarullah/docker-kingdom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakimamarullah%2Fdocker-kingdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakimamarullah%2Fdocker-kingdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakimamarullah%2Fdocker-kingdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakimamarullah%2Fdocker-kingdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakimamarullah","download_url":"https://codeload.github.com/hakimamarullah/docker-kingdom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakimamarullah%2Fdocker-kingdom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28566413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-compose","kubernetes","kubernetes-deployment","minikube","nginx","nginx-ing"],"created_at":"2024-09-26T01:47:40.418Z","updated_at":"2026-01-19T11:32:24.956Z","avatar_url":"https://github.com/hakimamarullah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backend Setup Guide\n\nWelcome to the backend setup repository! This guide will walk you through the steps required to configure and deploy the backend services using Kubernetes, Minikube, and associated tools.\n\n## Prerequisites\n\n- Ensure you have Docker, Minikube, kubectl, and `npx` installed on your local machine.\n- Familiarity with Kubernetes concepts and basic command-line operations.\n\n## Setup Instructions\n\nFollow these steps to set up and deploy the backend services:\n\n### 1. Configure Environment Variables\n\n- **Create Environment Files**: For each deployment environment, copy the appropriate `.env.service-name.example` file to `.env` and configure it according to your environment. Ensure that all necessary environment variables are set.\n\n### 2. Start Minikube\n\n- **Initialize Minikube**: Before running any deployment scripts, start Minikube:\n\n  ```bash\n  minikube start\n  ```\n\n- **Enable External IPs**: Run the following command to enable external IPs for the ingress controller:\n\n  ```bash\n  minikube tunnel\n  ```\n\n### 3. Create ConfigMap\n\n- **Run the Script**: Execute the following script to create the ConfigMap required for your services:\n\n  ```bash\n  ./create_configmap.sh\n  ```\n\n  This script sets up the necessary configuration for your deployments.\n\n### 4. Configure Ingress\n\n- **Check Ingress Configuration**: Open `ingress.yaml` and verify that all hostname entries are correctly set up.\n\n- **Update Hosts File**: Add the configured hostname(s) to your local hosts file to resolve the service locally. For example, on Windows, update `C:\\Windows\\System32\\drivers\\etc\\hosts`:\n\n  ```\n  127.0.0.1   your-custom-hostname.local\n  ```\n\n### 5. Deploy Kubernetes Resources\n\n- **Run the Deployment Script**: Execute the following script to deploy all Kubernetes resources. Ensure all deployments succeed:\n\n  ```bash\n  ./deploy_k8s.sh\n  ```\n\n### 6. Deploy Ingress\n\n- **Deploy Ingress Resources**: Before running this step, ensure that the NGINX-related deployments are up and running. Then, execute the following script to deploy the ingress resources:\n\n  ```bash\n  ./deploy_ingress.sh\n  ```\n\n### 7. Migrate the Database\n\n- **Setup Database URL**: Configure the database URL to connect to your PostgreSQL instance in your deployment environment.\n\n- **Run Prisma Migrations**: For each service that uses Prisma, follow these steps:\n\n  1. Navigate to the service directory.\n  2. Run the Prisma migration deploy command:\n\n     ```bash\n     npx prisma migrate deploy\n     ```\n\n### 8. Monitor the Cluster\n\n- **Access Minikube Dashboard**: You can monitor your Kubernetes cluster and manage your deployments using the Minikube dashboard. Run the following command to open the dashboard in your default web browser:\n\n  ```bash\n  minikube dashboard\n  ```\n\n### 9. Access Services\n\n- **Verify Deployment**: Once all scripts have been executed successfully, you can access your services using the custom hostname(s) registered in the ingress configuration.\n\n## Troubleshooting\n\n- **Deployment Issues**: Check the logs of the Kubernetes pods for errors using:\n\n  ```bash\n  kubectl logs \u003cpod-name\u003e\n  ```\n\n- **Ingress Issues**: Ensure the NGINX ingress controller is running and correctly configured.\n\n- **Database Migration Issues**: Verify that the database URL is correctly set and that Prisma migrations are applied without errors.\n\n## Additional Information\n\nFor more details on each script, configuration file, and deployment process, refer to the comments and documentation within the respective files.\n\n## Contact\n\nFor further assistance, please reach out to the project maintainers or file an issue on the repository.\n\n---\n\nFeel free to adjust any details or instructions to fit your specific setup or preferences.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakimamarullah%2Fdocker-kingdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakimamarullah%2Fdocker-kingdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakimamarullah%2Fdocker-kingdom/lists"}