Vue.js app on a docker container with hot reload

前端 未结 1 475
后悔当初
后悔当初 2021-02-06 02:46

I have a signifiant delay and high cpu usage when running my vue.js app on docker instance.

This is my docker setup

docker-compose.yml

version:          


        
相关标签:
1条回答
  • 2021-02-06 03:30

    Add one of the delegated or cached options to the volume mounting your app directory. I've experienced significant performance increases using cached in particular:

    volumes:
      - ~/.composer-docker/cache:/root/.composer/cache:delegated
      - ./:/usr/src/app:cached
    
    0 讨论(0)
提交回复
热议问题