Skip to content
Completely containerized multiple SPAs created by CRA with client-side routing accessible through an nginx gateway under different paths
Branch: master
Clone or download
Latest commit b43dc65 Jul 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vm Update README.md Apr 24, 2018
LICENSE Create LICENSE Apr 22, 2018
README.md Update README.md Jul 3, 2018

README.md

multiple-react-nginx

Completely containerized multiple SPAs created by CRA with client-side routing accessible through an nginx gateway under different paths as explained in detail here.

Run

cd vm
docker-compose up

The foo SPA will be available at http://localhost:8080/foo

The bar SPA will be available at http://localhost:8080/bar

Notes

The docker-compose.yml is just for convenience and demonstration purposes, of course the containers should be build with the correct PUBLIC_URL argument and pushed to a registry by your CI.

You can’t perform that action at this time.