docker工人的PHP工匠是非常缓慢的
我是Docker的新手,但是我想用它来更容易地组织我的生产环境。 我需要一个NGINX,PHP 7.2和Node(以及其他一些)的环境。 经过一番挖掘,我用了docker-compose:
version: '0.2' restart: always services: web: image: nginx:latest container_name: NGINX ports: - "80:80" volumes: - ./code:/code - ./nginx/conf.d/site.conf:/etc/nginx/conf.d/site.conf - ./nginx/sites-enabled:/etc/nginx/sites-enabled links: - php php: build: ./php container_name: PHP7.2 volumes: - ./code:/code composer: image: composer:latest container_name: Composer volumes: - ./code:/code node: build: ./node container_name: Node volumes: - ./code:/code
当我运行sudo docker-compose up
everything,但是因为我使用Laravel(5.5)应用程序,所以我有一些工匠命令。 有些命令会扫描所有的应用程序文件来填充数据库,与我的本地环境(Vagrant)相比,这个过程非常慢(+ 10倍慢)。
我研究过,显然卷有一些性能问题; 我已经尝试docker同步,但没有任何改变。 我真的想做这个工作,但我不知道是怎么回事。
- 在Docker环境中,Spring ResourceUtils或DefaultResourceLoader无法获取类path资源
- Docker容器不会重新加载Angular应用程序
- 如何将docker-compose升级到2.0?
- Dockernetworking – 服务发现
- Docker在Multicontainer Elastic Beanstalk中编写env_file
- 是否有像Kubernetes的仪表板/用户界面的Docker Swarm仪表板?
- 如何使用nvidia-docker在Docker Swarm中创build服务
- 不能删除mysql数据库,表,甚至在docker里面改变表
- 在docker容器中安装nfs共享