Comments (6)
Hi, as far as I investigated you get a 502 Bad Gateway until the phpfpm container logs the "fpm is ready to handle connections" which takes approximately 15 seconds on my mac.
You can see that with a dockergento docker-compose logs -f after starting the containers.
The 502s are apparently caused by an unavailable docker socket.
phpfpm_1 | [03-May-2019 10:23:57] NOTICE: ready to handle connections
nginx_1 | 2019/05/03 10:22:40 [notice] 1#1: using the "epoll" event method
it takes more than 1 min for me!
from magento2-dockergento.
Hi @erfanimani thanks for your help. I'm also experiencing that in some projects (it's more visible in large projects with a big ammount of code).
I don't have much information about that, but I think that containers in mac behave different than in linux because of the filesystem. Docker for mac can't use "native" filesystem and it needs some kind of virtualization, so probably docker for mac is making virtual mounts and copying files inside it (the reason of the bad performance).
I don't recomend you to mount pub, because the filesystem sync in docker for mac is really slow, you could use a volume and do a sync container -> host like we do with vendor (watch command).
Maybe you can do a deeper debug using the Console app for Mac.
I'm sorry for not being more helpful, if you need something please let us know!
from magento2-dockergento.
Hi, as far as I investigated you get a 502 Bad Gateway until the phpfpm container logs the "fpm is ready to handle connections" which takes approximately 15 seconds on my mac.
You can see that with a dockergento docker-compose logs -f after starting the containers.
The 502s are apparently caused by an unavailable docker socket.
from magento2-dockergento.
@powelles if it helps, I don't actually mount pub at all. I just run dockergento mirror-host /path/to/pub
and leave it — there's no need for me to keep it in sync, but your use case may vary.
from magento2-dockergento.
from magento2-dockergento.
@danielozano How would one go about changing pub to be mounted the same way as vendor? I've got 88GB of images in my pup folder and it takes over an hour to spin up.
from magento2-dockergento.
Related Issues (20)
- Feature request: add support for Magento 2 EE HOT 3
- Feature request: Add container for cron jobs HOT 1
- Mailhog Setup HOT 2
- modestcoders/node-php:node8-php7.3 is not avalible HOT 4
- how to set it as production HOT 2
- PHP 7.4 Support HOT 3
- SQLSTATE[HY000] [2002] No such file or directory HOT 1
- Path cannot be mirrored HOT 1
- Multiple database HOT 1
- Composer github oauth
- sample data install fails / composer error php 7.2 magento v 2.3.2 HOT 2
- Can't copy project files into host HOT 1
- Grunt compilation failure
- FEATURE: Mage2run HOT 3
- PHP 8 version
- Apple silicon m1
- More detailed docs?
- nginx version
- permission issues
- Magento 2.4.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-dockergento.