FleetShare — full company server (Docker edition) Default clone: https://github.com/dan123-tech/Licenta.git ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ What this does ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ • Clones the full FleetShare repo (Docker + Postgres + app + Caddy). • Detects this machine's IPv4 (or use FLEETSHARE_PUBLIC_HOST). • Writes NEXT_PUBLIC_APP_URL and NEXTAUTH_URL as http://IP:PORT (no trailing slash; default port 3000 if free, else next free 3000-3089). • Strips old or commented template lines from .env (matches dan123-tech/Licenta .env.example). • Writes a new AUTH_SECRET every run of this installer (32+ chars). Re-run = new secret = users signed out. • Windows: .env is written UTF-8 without BOM so Docker Compose reads variables reliably. • Optional: set FLEETSHARE_HTTP_PORT / FLEETSHARE_LAN_PROXY_PORT to pin ports; otherwise the second mapping auto-picks 3001+ (skips the app port). • Runs the project's install.sh / install.ps1 (docker compose up). ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Linux / Ubuntu VM (from your company /download page) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Install: Docker (Compose V2), git chmod +x fleetshare-full-server-install.sh ./fleetshare-full-server-install.sh ./fleetshare-full-server-install.sh .. # clone into parent folder Custom port / fork: FLEETSHARE_HTTP_PORT=8080 ./fleetshare-full-server-install.sh FLEETSHARE_SERVER_REPO=https://github.com/you/fork.git ./fleetshare-full-server-install.sh Fixed hostname instead of auto IP: FLEETSHARE_PUBLIC_HOST=fleet.mycompany.com FLEETSHARE_HTTP_PORT=443 ./fleetshare-full-server-install.sh (You still need TLS termination — e.g. reverse proxy or Caddy; see repo deploy/) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Windows (PowerShell) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Install: Docker Desktop, Git Open PowerShell, cd to the folder with the script, then: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force .\fleetshare-full-server-install.ps1 If you see "unexpected }" or odd errors: re-download the .ps1 from the site (older versions used $HostIp which breaks in Windows PowerShell). Optional: .\fleetshare-full-server-install.ps1 -Parent .. $env:FLEETSHARE_HTTP_PORT = "8080"; .\fleetshare-full-server-install.ps1 $env:FLEETSHARE_PUBLIC_HOST = "your.public.host.name"; .\fleetshare-full-server-install.ps1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ After install ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ • Browser (LAN): http://SERVER_IP:PORT (script prints the chosen port; default 3000 if free) • Stop: cd licenta_dani-main && ./install.sh --down (or install.ps1 -Down) • Optional AI licence validator: see /download#ai-validator on the marketing site This is NOT the small Vercel-only web repo — it is the full Docker stack from the Licenta repo.