Comments (3)
Hello,
This problem isn't related to this stack. But related to docker and the filesystem (see Shared Volumes Slow #188).
Unfortunately, there is no magic solutions for now
If you really want to mix Symfony, Docker and windows, you should limit the write operation between the host and the containers.
- Move vendors outside the containers:
"config": {
"bin-dir": "bin",
"vendor-dir": "../vendor"
},
<?php
// previous
$loader = require __DIR__.'/../vendor/autoload.php';
// now
$loader = require __DIR__.'/../../vendor/autoload.php';
- move cache+log folders
public function getCacheDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return '/dev/shm/application-name/cache/' . $this->environment;
}
return parent::getCacheDir();
}
public function getLogDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return '/dev/shm/application-name/logs';
}
return parent::getLogDir();
}
See more about overriding dir structure (Symfony official documentation)
BTW, MacOS got the same problem: Docker for Mac #77.
Cheers
from docker-symfony.
Lowered application loading time by half when added
services:
php:
volumes:
- /var/www/symfony/vendor
from docker-symfony.
@maxpou your new log path is on the host machine or on docker?
from docker-symfony.
Related Issues (20)
- Symfony logs in Kibana HOT 1
- File not found HOT 13
- schema update error HOT 2
- Host data not getting through HOT 1
- ELK on ECS
- how does it work with Symfony HOT 1
- Is there a way to use cron
- missing intl PHP extension during the rendering of a template HOT 1
- Composer could not find a composer.json file in /var/www/symfony HOT 1
- Symfony 4 is not working with this HOT 1
- Combine Nginx & Php-fpm in the same container HOT 1
- Permission denied when trying to update the /etc/hosts
- Composer could not find a composer.json file in /var/www/symfony HOT 1
- adding nodejs image does not work
- Cant access to Containers from host HOT 1
- PHP 5.6 version HOT 2
- Nginx Bad Gateway HOT 2
- ELK keeps restarting? HOT 1
- SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client HOT 6
- Problem fastcgi HOT 2
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 docker-symfony.