Open soft4net opened 4 years ago
I personally don't use docker locally for frontend development with node.js because the filesystem is too slow. So unless you have a specific need for containers, e.g. have multiple node versions for different projects, I would recommend working directly on your host machine.
@csandanov thank you for a reply. As you have seen i use ":cached" for file system speed up, maybe i should check build times using docker-sync.
Codebase Mounted codebase
Describe your issue When i use Drupal from docker container for GatsbyJS development/production build it takes very long to finish, in comparison, once running Drupal without container (from remote server) build is 6x faster. GatsbyJS consumes data over HTTP requests (JSON:API endpoints). Switching Drupal to "production" mode, engaging caching gives no improvement.
Output of
docker info
Contents of your
docker-compose.yml
Contents of your
.env
Logs output
docker-compose logs