Commit Graph

8 Commits

Author SHA1 Message Date
root
086cce4617 Fix: create .env before composer install (artisan needs it for post-scripts) 2026-04-05 20:27:16 +02:00
root
1632b568af Restructure Docker for Dokploy deployment
- Copy app code into PHP image, sync to shared volume at startup
- Use named volume (app_code) shared between app and nginx
- Build nginx image with embedded config (no bind mounts)
- Add .dockerignore to optimize image build
- Build context moved to project root for both services
2026-04-05 20:09:12 +02:00
root
3abde23629 Fix: create bootstrap/cache and storage dirs before composer/artisan 2026-04-05 20:04:17 +02:00
root
4f197a5ecb Fix: persist APP_KEY across redeploys via Docker env vars
- Entrypoint now overrides .env with Docker environment variables
- Supports all key vars: APP_KEY, APP_URL, DB_*, REDIS_*
- Warns to save APP_KEY in Dokploy if auto-generated
- Fixes DecryptException on proclamatori encrypted fields
2026-04-05 20:02:07 +02:00
root
16616adcfd Remove user/permission management for Dokploy deployment
- Dockerfile: remove appuser creation, run everything as root
- www.conf: switch php-fpm workers to www-data
- entrypoint.sh: remove all chown and git safe.directory workarounds
- docker-compose.yml: remove USER_ID/GROUP_ID build args
- .env.example: remove USER_ID/GROUP_ID variables
2026-04-05 19:54:12 +02:00
root
d38d8b7896 Add Docker entrypoint and cleanup gitignore
- Add entrypoint.sh for automated app initialization (composer, npm, migrations, cache)
- Update Dockerfile: run entrypoint as root, php-fpm workers still run as appuser
- Update .gitignore: exclude storage/logs, storage/framework, bootstrap/cache, public/build
- Remove generated/cached files from git tracking
2026-04-05 19:50:55 +02:00
Francesco Picone
50f28292ef Primo commit 2026-04-05 19:30:47 +02:00
Francesco Picone
701f479b7f Primo commit 2026-04-05 19:26:04 +02:00