Documentation

Find your answer

Searching InvoiceShelf 3
Browse documentation
v3 docsInstall & develop

Docker installation

v3 — Latest (Alpha)Verified against 3.0.0-alpha.10
On this page

Use the official image pinned to 3.0.0-alpha.10. The next tag tracks the moving v3 preview; this guide pins the alpha so the instructions remain reproducible.

Prepare Compose

Install Docker Engine with its Compose plugin. Create a new empty deployment directory and save this as compose.yaml for a local SQLite installation:

services:
  invoiceshelf:
    image: invoiceshelf/invoiceshelf:3.0.0-alpha.10
    ports:
      - "127.0.0.1:8090:8080"
    environment:
      APP_ENV: production
      APP_DEBUG: "false"
      APP_URL: http://localhost:8090
      DB_CONNECTION: sqlite
      DB_DATABASE: /var/www/html/storage/app/database.sqlite
      CACHE_STORE: file
      SESSION_DRIVER: file
      SESSION_DOMAIN: localhost
      SANCTUM_STATEFUL_DOMAINS: localhost:8090
      PHP_TZ: UTC
    volumes:
      - storage:/var/www/html/storage
      - modules:/var/www/html/Modules
volumes:
  storage:
  modules:

The loopback port is a local example. For a public server, put an HTTPS reverse proxy in front and change APP_URL to the public URL. Set SESSION_DOMAIN to its hostname without a scheme or port, and SANCTUM_STATEFUL_DOMAINS to the browser host, including a nonstandard port if used. Trust only the proxy addresses that should supply forwarded headers.

Start and finish setup

docker compose up -d
docker compose logs --tail=100 invoiceshelf

Open http://localhost:8090 and follow the installer. Keep the SQLite database on the mounted storage path. If you use MySQL, MariaDB or PostgreSQL instead, configure that service and its database credentials before the wizard; the database must be reachable from the application container.

Verify persistence

Create a test document, restart the application container, and confirm it is still present and its PDF renders. Preserve the volumes, application key and deployment configuration. docker compose down --volumes deletes named volumes and is not an ordinary restart command.

Updates

Take and restore-test a backup, read the target release notes, then deliberately change the image tag. Verify the update on a copy first. Follow migration and updates for the version boundary; replacing the image alone is not a tested rollback of a migrated database.

Edit this page on GitHubDocs published Nov 23, 2026