fix/sail-node-modules-volume #46

Merged
ahmido merged 2 commits from fix/sail-node-modules-volume into dev 2026-01-08 01:19:55 +00:00

View File

@ -14,10 +14,13 @@ 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'
networks:
- sail
depends_on:
@ -36,10 +39,13 @@ 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'
networks:
- sail
depends_on: