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
+1
View File
@@ -96,6 +96,7 @@ services:
container_name: coolify-vite
working_dir: /var/www/html
environment:
# Set VITE_HOST in .env to a browser-reachable IP/hostname for LAN/Tailscale access
VITE_HOST: "${VITE_HOST:-localhost}"
VITE_PORT: "${VITE_PORT:-5173}"
ports: