In this repo, there are 4 services with containerization and kubernetes incorporated.
They are:
- Frontend application
- Backend user service
- Backend feed service
- Reverse Proxy
- Update the following configuration files
- aws-secret.yaml
- [env-configmap.yaml]/udacity-c3-deployment/k8s/env-configmap.yaml)
- env-secret.yml
- Update your .profile or .bash_profile with the values for the following environment variables
- POSTGRESS_USERNAME
- POSTGRESS_PASSWORD
- POSTGRESS_DB
- POSTGRESS_HOST
- URL=http://localhost:8100
- AWS_REGION
- AWS_PROFILE
- AWS_BUCKET
- JWT_SECRET
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
Running the application
-
Change working directory to the application e.g.
cd udacity-restapi-feed
-
Install the dependencies for each project
npm install
====================================================================================
- Build the docker images
docker-compose -f udacity-c3-deployment/docker/docker-compose-build.yaml build --parallel
- Run the container
docker-compose up