laravel-graphql icon indicating copy to clipboard operation
laravel-graphql copied to clipboard

Laravel-graphql + Docker

Open derotune opened this issue 6 years ago • 3 comments

Hey everybody,

i run a laravel application inside docker with the laravel-graphql installed. This seems to be very slow as it takes like 2-3 seconds for a normal query. When i start the laravel application on local its like instantly. I think it could have to do something with graphql because the normal api request like on / which just returns a json array is very fast on both, docker and local. Maybe someone has the same problem with running graphql in docker or maybe its a completely different problem..

derotune avatar Apr 17 '18 07:04 derotune

Are you running docker on macos?

kevinvdburgt avatar Apr 17 '18 10:04 kevinvdburgt

Yes. Update on this: its way faster now cause i used the php alpine package. So seems that this is a macos docker problem..but if somebody still knows some configuration to make this fast as possible please tell me :D

derotune avatar Apr 18 '18 09:04 derotune

I was facing same problem, but within swarm (1 manager 2 workers, all linux). I managed to solve it by setting "nobarriers" option to /etc/fstab in ext4 partition. Maybe that helps.

ivanfilatov avatar May 30 '18 13:05 ivanfilatov