This is a sample micro-frontend development environment with Docker. Demonstrates how to use Docker to manage multiple frontend projects with different frameworks (Svelte, React etc.). The projects will be hosted under the same domain using nginx as reverse proxy.
First time or when update files outside directories defined in volume
in docker-compose.yml
.
docker-compose build && docker-compose up
When update files inside directories defined in volume
in docker-compose.yml
.
docker-compose up
docker-compose.yml
file defines the services to be used in the development environment.nginx
service is used as a reverse proxy to route requests to the different frontend projects./
and Svelte will be served at /s
.http://localhost
.