Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ymdarake/web-container-template


https://github.com/ymdarake/web-container-template

docker kubernetes template-repository

Last synced: about 4 hours ago
JSON representation

Awesome Lists containing this project

README

        

# WEB Container Template

Template for building a multi-container web application.

## Containers

- k8s
- Deploying template to GCP is available on [ymdarake/web-k8s-template](https://github.com/ymdarake/web-k8s-template)
- Configuration files for Kubernetes
- NEED to
- `kubectl create secret generic pgpassword --from-literal PGPASSWORD=`
- [ingress-nginx setup](https://kubernetes.github.io/ingress-nginx/deploy/#provider-specific-steps)
- local
- `kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.0/deploy/static/provider/cloud/deploy.yaml`
- GCP (GKE)
- https://kubernetes.github.io/ingress-nginx/deploy/#gce-gke
- https://kubernetes.io/docs/concepts/services-networking/ingress/
- [Configuring Local Dashboard](https://andrewlock.net/running-kubernetes-and-the-dashboard-with-docker-desktop/)
- `kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml`
- `kubectl patch deployment kubernetes-dashboard -n kubernetes-dashboard --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--enable-skip-login"}]'`
- `kubectl proxy`
- http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
- shows Skip button

- nginx
- Minimum routing configuration
- server
- Express server template with Redis and PostgreSQL
- Hot reloading available
- NOT in TypeScript (but it's just a tiny piece of code so we can live with that)
- worker
- Redis worker for the server
- in Node.js (same as the above)
- client
- React app in TypeScript
- Hot reloading available
- NGINX attached for content distribution in production build