fix(sail): auto-fix node_modules volume permissions

This commit is contained in:
Ahmed Darrazi 2026-01-08 02:17:36 +01:00
parent 132a9ae231
commit d790f7a3fb

View File

@ -14,8 +14,10 @@ services:
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
environment:
WWWUSER: '${WWWUSER:-1000}'
WWWGROUP: '${WWWGROUP:-1000}'
LARAVEL_SAIL: 1
APP_SERVICE: laravel.test
entrypoint: ["/bin/sh", "-c", "mkdir -p /var/www/html/node_modules && chown ${WWWUSER:-1000}:${WWWGROUP:-1000} /var/www/html/node_modules || true; exec start-container"]
volumes:
- '.:/var/www/html'
- '/var/www/html/node_modules'
@ -37,8 +39,10 @@ services:
- 'host.docker.internal:host-gateway'
environment:
WWWUSER: '${WWWUSER:-1000}'
WWWGROUP: '${WWWGROUP:-1000}'
LARAVEL_SAIL: 1
APP_SERVICE: queue
entrypoint: ["/bin/sh", "-c", "mkdir -p /var/www/html/node_modules && chown ${WWWUSER:-1000}:${WWWGROUP:-1000} /var/www/html/node_modules || true; exec start-container"]
volumes:
- '.:/var/www/html'
- '/var/www/html/node_modules'