{"id":14975890,"url":"https://github.com/neutonfoo/kubernetes-and-docker-compose-simple-stack","last_synced_at":"2026-03-04T15:31:08.472Z","repository":{"id":113098510,"uuid":"283399594","full_name":"neutonfoo/Kubernetes-and-Docker-Compose-Simple-Stack","owner":"neutonfoo","description":"A simple React and Express stack running on Kubernetes and Docker Compose","archived":false,"fork":false,"pushed_at":"2023-04-21T05:37:57.000Z","size":1031,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T02:18:11.971Z","etag":null,"topics":["docker","dockercompose","kubernetes"],"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/neutonfoo.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":"2020-07-29T04:40:36.000Z","updated_at":"2024-12-03T21:10:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"e071b8d1-0880-488d-8900-80e3bff58f27","html_url":"https://github.com/neutonfoo/Kubernetes-and-Docker-Compose-Simple-Stack","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"f18d4bfea0166ad9eadc06d373383eb66b6bd92b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutonfoo%2FKubernetes-and-Docker-Compose-Simple-Stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutonfoo%2FKubernetes-and-Docker-Compose-Simple-Stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutonfoo%2FKubernetes-and-Docker-Compose-Simple-Stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neutonfoo%2FKubernetes-and-Docker-Compose-Simple-Stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neutonfoo","download_url":"https://codeload.github.com/neutonfoo/Kubernetes-and-Docker-Compose-Simple-Stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241110811,"owners_count":19911398,"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","dockercompose","kubernetes"],"created_at":"2024-09-24T13:52:49.295Z","updated_at":"2026-03-04T15:31:08.014Z","avatar_url":"https://github.com/neutonfoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install NGINX Ingress Controller\n\n- Needed for k8s deployment (used instead of the nginx reverse proxy)\n\nhttps://kubernetes.github.io/ingress-nginx/\n\n- NGINX Ingress Controller will be installed in the `ingress-nginx` namespace\n- Port 80 will automatically be exposed\n- Configuation is stored in k8s/ingress-service.yaml\n\n`kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.34.1/deploy/static/provider/cloud/deploy.yaml`\n\n# React Client\n\nThe client was created with `npx create-react-app client`. The `.git` and `node_module` folders were deleted. `App` was modified to load a value from an Express endpoint on `componentDidMount()` with Axios.\n\nTo build and push the client image to Docker Hub, run\n\n```sh\ndocker build client -t neutonfoo/client\ndocker push neutonfoo/client\n```\n\n# Express Server\n\nThe server was created with only a bare `package.json` file serving a single endpoint `/api/value`.\n\nTo build and push the server image to Docker Hub, run\n\n```sh\ndocker build server -t neutonfoo/server\ndocker push neutonfoo/server\n```\n\n# docker-compose\n\nTo run this application with Docker Compose, simply run `docker-compose up --build` and `docker-compose down` when you're done. With Docker Compose, an nginx server is used as a reverse proxy direct traffic to either the nginx server hosting the client, or the Express server API.\n\n# k8s\n\n- You will need NGINX Ingress Controller installed.\n\nTo run this application in Kubernetes, you will have to have `NGINX Ingress Controller` installed (above). This nginx Ingress server is used instead of the nginx reverse proxy in the Docker Compose deployment.\n\n```sh\nkubectl apply -f k8s\n```\n\n# Cleanup\n\n```sh\nkubectl delete -f k8s\nkubectl delete namespace ingress-nginx\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneutonfoo%2Fkubernetes-and-docker-compose-simple-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneutonfoo%2Fkubernetes-and-docker-compose-simple-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneutonfoo%2Fkubernetes-and-docker-compose-simple-stack/lists"}