Skip to content

nzcodarnoc/korerorero-reverse-proxy

 
 

Repository files navigation

Korerorero / Reverse Proxy

http-proxy-middleware to serve a reverse proxy that routes to multiple express applications as containers via docker-compose

Getting Started

Build images and run containers:

docker-compose build && docker-compose up

Then navigate to: http://localhost:8000/front-end

Sequence diagram of a call to make the voice and mouth shapes animate

Sequence diagram of a call to make the voice and mouth shapes animate

Class diagram of services

Class diagram of services

Architecture of docker-compose-yml

Image Architecture of docker-compose-yml

Postscript: diagrams in this README

Regenerate docker-compose.png

docker run --rm -it --name dcv -v $(pwd):/input pmsipilot/docker-compose-viz render -m image docker-compose.yml

Other diagrams can be recreated with

https://mermaid-js.github.io/

Run in production

The docker-compose file assumes it's running in dev, and everything needs to be built.

To serve it up in a prod environment, run the following commands in the terminal.

They make all the images (except proxy) be pulled from Docker Hub, and, sets the start command to serve up a SSL version.

sed -i 's/build:/# build:/g' docker-compose.yml
sed -i 's/context: /# context: /g' docker-compose.yml
sed -i 's/    # context: \./  build:\n      context: \./g' docker-compose.yml

sed -i 's/# command/command/g' docker-compose.yml
sed -i 's/# privileged/privileged/g' docker-compose.yml
sed -i 's/ports:/ports:\n      - 80:80\n      - 443:443/g' docker-compose.yml

Notes on Greenlock in docker

TL;DR: unless they certs are stored in a volume, they will be requested every time the container is brought up and the API limit will get hit pretty quick.

https://git.rootprojects.org/root/greenlock-express.js/issues/58

About

The main component of Korerorero

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.8%
  • Shell 11.2%