Multistage Dockerfile (FrankenPHP + Octane + Horizon + Reverb) with
docker-compose wiring 6 services: app, mariadb, qdrant, ollama, redis,
traefik. All data mounts to .core/vm/mnt/{config,data,log}. Traefik
routes *.lthn.sh with self-signed TLS. Setup script handles first-run
bootstrap including cert generation and embedding model pull.
Co-Authored-By: Virgil <virgil@lethean.io>
24 lines
461 B
Bash
Executable file
24 lines
461 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
cd /app
|
|
|
|
# Wait for MariaDB
|
|
until php artisan db:monitor --databases=mariadb 2>/dev/null; do
|
|
echo "[entrypoint] Waiting for MariaDB..."
|
|
sleep 2
|
|
done
|
|
|
|
# Run migrations
|
|
php artisan migrate --force --no-interaction
|
|
|
|
# Cache config/routes/views
|
|
php artisan config:cache
|
|
php artisan route:cache
|
|
php artisan view:cache
|
|
php artisan event:cache
|
|
|
|
# Storage link
|
|
php artisan storage:link 2>/dev/null || true
|
|
|
|
echo "[entrypoint] Laravel ready"
|