How to run vue app inside docker on different port


By default vue app runs over port 8080. You can change the port to 8081 or some thing else inside docker by following steps below Open port 8081 for docker in docker-compose Run npm serve on port 8081In vue.config.js, change port to 8081 docker-compose.yml vue-config.js

How to access server running inside docker?


Docker runs in a virtual environment so has its own network and ip management. To access server running inside docker in your browser you need to either bind the server to port 0.0.0.0 which is local host of your system or use docker ip. You can get docker ip using below What if servers running … Continue reading How to access server running inside docker?