dream2891 2016-03-05 15:05
浏览 69
已采纳

Php应用程序开始与docker一起慢慢运行

I am sure it is too general question. But still hope to get some helpful advice.

So I use vagrant to run our php application, we use postgres, rabbitmq and memcached. I set up docker environment. Here's my docker-compose.yml

web:
  build: app
  ports: 
    - "80:80" 
  volumes:
    - /Users/ihorsamusenko/my/project:/var/www/app
  links:
    - db
    - rabbit
    - memcached
db:
  build: postgres
  ports:
    - 5432:5432
  environment:
    POSTGRES_PASSWORD: postgres
    POSTGRES_USER: postgres
rabbit:
  image: rabbitmq
memcached:
  image: memcached

But with such setup application started working much slower than it used to do. I understand that probably my problem is application specific. But still, maybe there are some common tips for such problems.

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了