fix(dev): support root bind mounts and LAN Vite access

Keep the dev container as root for s6 init so composer can create
vendor/ on root-owned mounts, then chown writable paths to www-data.
Move init-setup into a shell script and expose VITE_HOST/PORT for
remote HMR (LAN/Tailscale) with Vite listening on 0.0.0.0.
This commit is contained in:
Andras Bacsai
2026-07-18 20:56:01 +02:00
parent 913d033c75
commit e2c2180f4f
20 changed files with 80 additions and 44 deletions
+8
View File
@@ -30,6 +30,14 @@ DB_PORT=5432
# Enable Laravel Telescope for debugging
TELESCOPE_ENABLED=false
# Enable Laravel Debugbar (disabled by default; set true when needed)
DEBUGBAR_ENABLED=false
# Vite dev server. Defaults to localhost. For phone/LAN/Tailscale access, set to
# the host machine's reachable IP (e.g. VITE_HOST=100.75.155.70), then recreate vite.
VITE_HOST=localhost
VITE_PORT=5173
# Enable Laravel Nightwatch monitoring
NIGHTWATCH_ENABLED=false
NIGHTWATCH_TOKEN=