Hosting
Hosting
LaraPaper runs anywhere Docker is supported: Raspberry Pi, VPS, NAS, or container platforms (Cloud Run, etc.).
Supported deployment model
LaraPaper is meant to run as a single-user server on a VPS or in a homelab. Multi-user mode (MULTIUSER_REGISTRATION_ENABLED=1) is for trusted environments only, like family and friends. Full isolation between users is a non-goal: do not run LaraPaper as a public or multi-tenant service, and do not give accounts to people you don’t trust.
Docker Compose (recommended)
Use the production compose file at docker/prod/docker-compose.yml.
For production, generate an application key and set it in your environment:
php artisan key:generate --show
Set APP_KEY= in your environment (should start with prefix base64). The first account can always be created. Further signup needs MULTIUSER_REGISTRATION_ENABLED=1 (see Environment variables).
Backup database
docker ps # find the LaraPaper container id
docker cp {{CONTAINER_ID}}:/var/www/html/database/storage/database.sqlite database_backup.sqlite
Update
docker compose pull
docker compose down
docker compose up -d
Other hosting
| Option | Notes |
|---|---|
| VPS + Dokploy | Template search for quick deploy without manual Docker setup. |
| PikaPods | Vote for a template: feedback.pikapods.com |
| Home Assistant | LaraPaper (BYOS) add-on. Repository: usetrmnl/trmnl-home-assistant. |
| Umbrel | Community store: umbrel-store |
| Laravel Forge / bare metal | PHP 8.4+, Nginx or Apache, see Requirements. |
Serving under a sub-path
To serve LaraPaper under a path such as https://example.com/larapaper/, have the reverse proxy
strip the path and send it in an X-Forwarded-Prefix header, and add the proxy to
TRUSTED_PROXIES. Links, redirects and assets then include the path. Nginx example:
location /larapaper/ {
proxy_pass http://127.0.0.1:4567/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Prefix /larapaper;
}
First login
- Local: open
http://localhost:4567and sign in withadmin@example.com/admin@example.com(after seeding). - Production: register the first account. Further signup stays closed unless
MULTIUSER_REGISTRATION_ENABLED=1. Only enable that for trusted users (family, friends), since there is no full isolation between users. It also disables user-authored Blade unlessINSECURE_BLADE_ALLOW_PHP_EXECUTION=1, which allows any registered user to execute PHP as the web server user. - OpenID Connect: optional. See Authentication.