Household inventory that answers one question: where is that thing? Laravel, Filament, Postgres.
1.8K
A household inventory that answers one question: where is that thing?
You photograph an item, an AI model writes its title, description and search terms, and you put it on a spot such as a shelf in the cellar. Later you search by keyword or by meaning and Tory tells you where the item lies. The interface is German.
Source, documentation and issues: https://github.com/tredmann/tory
1.0.3, 1.0.4, ...: one tag per release, for amd64 and arm64latest: the newest release<version>-amd64, <version>-arm64: the single-platform images behind a release; you normally do not need thempgvector/pgvector:pg18-trixiebge-m3 on Ollama. Without one, search works by keyword.Generate the three secrets once and keep them. Changing APP_KEY later makes stored provider keys unreadable; changing the Passport keys ends every Claude connection.
docker run --rm --entrypoint php tredmann/tory artisan key:generate --show
openssl genrsa -out oauth-private.key 4096
openssl rsa -in oauth-private.key -pubout -out oauth-public.key
services:
tory:
image: tredmann/tory:1.0.3
stop_grace_period: 4m
environment:
APP_KEY: "base64:..."
APP_URL: "https://tory.example.com"
PASSPORT_PRIVATE_KEY: "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
PASSPORT_PUBLIC_KEY: "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----"
AUTO_MIGRATE: "true"
TRUSTED_PROXIES: "172.16.0.0/12"
DB_CONNECTION: pgsql
DB_HOST: db
DB_PORT: "5432"
DB_DATABASE: tory
DB_USERNAME: tory
DB_PASSWORD: "change-me"
volumes:
- ./storage:/app/storage
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: pgvector/pgvector:pg18-trixie
environment:
POSTGRES_DB: tory
POSTGRES_USER: tory
POSTGRES_PASSWORD: "change-me"
volumes:
- db-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U tory -d tory"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
volumes:
db-data:
Point your reverse proxy at port 80 of the tory service. The storage directory must be writable for uid 33 (www-data).
There is no registration page. Create the first user and make them administrator:
docker compose exec tory php artisan make:filament-user --name=Admin [email protected] --password='a long password'
docker compose exec tory php artisan users:make-admin [email protected]
The user still has to confirm their email address. Unless you configure a mail server, the verification link is written to the container log on first login (docker compose logs tory). Further users are invited by an administrator in the app.
| Variable | Required | Meaning |
|---|---|---|
APP_KEY | yes | Encryption key; the container refuses to start without it |
APP_URL | yes | Public address; also printed into the QR codes on spot labels |
PASSPORT_PRIVATE_KEY, PASSPORT_PUBLIC_KEY | yes | PEM contents on one line with \n; used by the MCP server |
DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD | yes | Postgres 18 with pgvector |
AUTO_MIGRATE | no | true runs the migrations on start |
TRUSTED_PROXIES | behind a proxy | Address range of your proxy; without it links come out as http |
MAIL_* | no | Laravel mail settings; default is the log |
MIT
Content type
Image
Digest
sha256:a0a41d040…
Size
412.8 MB
Last updated
1 day ago
docker pull tredmann/tory