Advanced Configuration
KitchenOwl is configured through environment variables on the backend container (tombursch/kitchenowl or tombursch/kitchenowl-backend). For the split-container setup, see Getting Started and the Frontend section below.
Docker Secrets (*_FILE)
Variables marked with supports _FILE can alternatively be provided by appending _FILE to the name (e.g. JWT_SECRET_KEY_FILE: /run/secrets/jwt_secret). The file value overrides the plain environment variable.
Image Tags
latest(default) — current stable releasebeta— most recent prerelease with experimental featuresdev— built directly frommain(not recommended for production)vX.X.X— pin a specific release (see Releases)
General & Security
JWT_SECRET_KEY— required, supports_FILE- Secret used to sign authentication tokens. Generate a strong random string (e.g.
openssl rand -hex 32). JWT_REFRESH_TOKEN_EXPIRES— default:30- How long (in days) refresh tokens remain valid before users are logged out. Must be a number.
FRONT_URL- Public URL of your KitchenOwl instance including scheme (e.g.
https://app.kitchenowl.org). Adds the allow-origin CORS header and is required when using OIDC. BASE_HREF- Subdirectory KitchenOwl is hosted at. Must begin and end with
/(e.g./kitchenowl/). Only applies to the all-in-one imagetombursch/kitchenowl(for multiservice, set it on the frontend). STORAGE_PATH— default:/data- Base directory for persistent data. Uploaded images are stored in
STORAGE_PATH/upload. PRIVACY_POLICY_URL/TERMS_URL- Custom privacy policy and terms-of-service URLs shown in the app.
SKIP_UPGRADE_DEFAULT_ITEMS— default:false- Skip importing and updating default items in every household on startup.
KITCHENOWL_MCP_ENABLED— default:false- Enable the Model Context Protocol (MCP) server at
/mcp. See MCP Server.
Registration & Authentication
OPEN_REGISTRATION— default:false- Allow anyone to create an account on your server.
EMAIL_MANDATORY— default:false- Require an email address when registering (only relevant when
OPEN_REGISTRATIONistrue). DISABLE_ONBOARDING— default:false- Disable the initial UI onboarding flow for creating the first user. When enabled, create the first user via manage.py.
DISABLE_USERNAME_PASSWORD_LOGIN— default:false- Allow login only via OpenID Connect (OIDC). Automatically disables
OPEN_REGISTRATION.
OpenID Connect (OIDC)
For redirect URIs, scopes, and provider examples (including Authelia), see OpenID Connect.
OIDC_ISSUER- OIDC issuer URL (e.g.
https://auth.example.org). OIDC_CLIENT_ID- OIDC client ID.
OIDC_CLIENT_SECRET— supports_FILE- OIDC client secret.
OIDC_RFC_COMPLIANT_REDIRECT— default:true- Use the RFC-compliant mobile redirect URI
kitchenowl:/signin/redirect. Set tofalseto usekitchenowl:///signin/redirect.
Social Login (Apple & Google)
Not recommended for self-hosted instances (see OIDC — Apple & Google).
APPLE_CLIENT_ID/APPLE_CLIENT_SECRET(supports_FILE)- Sign in with Apple credentials.
GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET(supports_FILE)- Sign in with Google credentials.
Database
KitchenOwl uses SQLite by default. To switch to PostgreSQL, see docker-compose-postgres.yml:
environment:
DB_DRIVER: postgresql
DB_HOST: db
DB_NAME: kitchenowl
DB_USER: kitchenowl
DB_PASSWORD: PLEASE_CHANGE_ME
DB_DRIVER— default:sqlite- Database driver. Supported values:
sqlite,postgresql. DB_NAME— default:STORAGE_PATH/database.db- Database name (for
postgresql) or file path (forsqlite). DB_HOST/DB_PORT- Database server hostname and port (for
postgresql, typically port5432). DB_USER/DB_PASSWORD— both support_FILE- Database credentials (for
postgresql). DB_SQLITE_SYNCHRONOUS— default:FULL- SQLite only (
synchronousPRAGMA).NORMALis much faster on slow disks (e.g. NAS);FULLis safest. One ofOFF,NORMAL,FULL,EXTRA. DB_POOL_SIZE— default:5/DB_MAX_OVERFLOW— default:10- SQLAlchemy connection pool size and maximum overflow connections (for
postgresql).
Email (SMTP)
Optional. Enables password reset emails and user email verification.
environment:
SMTP_HOST: smtp.example.org
SMTP_PORT: "587"
SMTP_USER: kitchenowl@example.org
SMTP_PASS: PLEASE_CHANGE_ME
SMTP_FROM: kitchenowl@example.org
SMTP_HOST- SMTP server hostname.
SMTP_PORT— default:465- SMTP server port.
SMTP_USE_TLS— default:false(autotrueifSMTP_PORTis587)- Enable STARTTLS.
SMTP_USER/SMTP_PASS— both support_FILE- SMTP authentication credentials.
SMTP_FROM/SMTP_REPLY_TO- Sender and Reply-To email addresses for outgoing messages.
AI & Ingredient Parsing
See AI & Ingredient Parsing for OpenAI, Ollama, and OpenRouter setup guides.
LLM_MODEL- LLM model used for ingredient detection when scraping recipes and for AI recipe generation (e.g.
ollama/llama3.1). LLM_API_URL- Custom API base URL for your LLM provider (e.g. Ollama server URL or OpenRouter endpoint).
LLM_RECIPE_GENERATION— default:true(whenLLM_MODELis set)- Enable the AI recipe generator ("AI" button when adding recipes). Requires
LLM_MODEL. NLP_IF_EN- When set to any non-empty value, use the fast local NLP parser instead of the LLM for English recipes.
OPENAI_API_KEY/OPENROUTER_API_KEY/ etc.- Provider API key. See the LiteLLM providers docs.
Metrics & Scaling
COLLECT_METRICS— default:false- Expose a Prometheus metrics endpoint at
/metrics/(reachable on port9100via the frontend container, e.g.front:9100/metrics/). METRICS_USER— default:kitchenowl/METRICS_PASSWORD— default:ZqQtidgC5n3YXb(supports_FILE)- HTTP basic auth credentials for
/metrics/. MESSAGE_BROKER- Optional AMQP broker URL (e.g.
amqp://rabbitmq) for scaling with Celery. See docker-compose-rabbitmq.yml.
Overriding the backend command (not recommended)
You can override the start command to increase worker concurrency (see docker-compose-postgres.yml):
back:
command: --ini wsgi.ini:web --gevent 2000 # default: 100
This is not recommended as the underlying startup command may change in future releases.
Frontend
Environment variables for tombursch/kitchenowl-web (only used in the multiservice setup):
BACK_URL— default:back:5000- Custom uWSGI address for the backend container (container name or IP and port
5000). BASE_HREF- Subdirectory KitchenOwl is hosted at. Must begin and end with
/(e.g./kitchenowl/).