Home
Softono
vite-docker-hmr-dev-base

vite-docker-hmr-dev-base

Open source MIT TypeScript
19
Stars
5
Forks
0
Issues
1
Watchers
4 years
Last Commit

About vite-docker-hmr-dev-base

A base for Vite React development on Docker using HMR

Platforms

Web Self-hosted Docker

Languages

TypeScript

Links

Base for Vite HMR development on Docker

This is a base project for using Vite on a Docker container for development using the HMR on a NGINX reverse proxy.

There is two containers:

  • reverse-proxy (NGINX server on port 80)
  • ui (vite app)

The 3000 port is used internally for the UI communication with the NGINX proxy. The 80 port is used externally for the main app and port 3001 for the HMR.

More details on the Step by Step file.

Feel free to play like you want with this! I learned a lot making it, I hope this can be useful for someone too!