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

  1. Open port 8081 for docker in docker-compose
  2. Run npm serve on port 8081
  3. In vue.config.js, change port to 8081
docker-compose.yml

vue-config.js

One thought on “How to run vue app inside docker on different port

Leave a Reply

Your email address will not be published. Required fields are marked *