agent/docker/scripts/entrypoint.sh
Snider 9df5ed10f6 feat(docker): local development stack for community onboarding
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>
2026-03-15 13:15:05 +00:00

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"