vite-plugin-mkcert
vite-plugin-mkcert copied to clipboard
Running inside docker container
Is this plug-in supposed to work in a docker container too?
- How should my
vite.config.tslook like? - Also what port(s) should I map in my
docker-composefile? - Is
server.hmroption required/preferred in this scenario?
I have been struggling with it for several hours. In the best case scenario I was getting NET::ERR_CERT_AUTHORITY_INVALID in the browser when trying to access vite dev server.
In the current setup, I am:
- Using
-- hostoption with thedevscript. - Running vite server on port 3000.
- Mapping port 3000 to 3005 of the host machine in my
docker-compose file
But I cannot access the Vite server in a host browser using any of 127.0.0.1, localhost and 0.0.0.0.
I'm sorry, I'm not very familiar with Docker