Use
Apps
Install from the catalog, or add your own container, program or website.
An app is a catalog entry or a spec in /etc/bistro/apps/<id>.json. Bistro writes the systemd units from the spec and keeps them in step.
#Install from the Catalog
Open Apps, find the app (Jellyfin, Nginx Proxy Manager and more) and install it. Bistro then tracks it: health check, restart, updates and logs.
bistro apps # list apps
bistro apps install jellyfin
bistro apps logs jellyfinBundles install several apps in one step, for example a media set or a private chat with a local model:
bistro apps bundle # list bundles
bistro apps bundle install private-chatgpt#Add Your Own
Three kinds: a container image, a command or program, or a website folder.
bistro app add blog --folder /srv/data/blog --web 8080
bistro app add api --image docker.io/me/api:latest --web 3000
bistro app set blog domain blog.lanA command is stored only in <id>.sh. It is never put into a unit file.
#Options
Set options with bistro app set ID KEY VALUE. The keys are restart, health, replicas, domain, logs, memory, cpu, autoupdate and boot.
- Health check: one timer per app, every minute. Three failures in a row restart the copy. An answer from 100 to 499 is healthy.
- Copies: more than one copy gets one unit each on internal ports from 30000, with round robin load balancing.
- Domain and HTTPS: Caddy is installed the first time you need it (a website, a domain or more than one copy). Bistro checks the Caddy config before it reloads and restores the old one if Caddy refuses it.
- Doctor:
bistro app doctor IDfinds why an app does not work.
#Deploy from Git
bistro apps deploy blog https://example.com/me/blog.git main 8080
bistro apps releases blog # the last 10 deploys
bistro apps rollback blog # back to the commit before the last deployBistro builds a repo that has a Dockerfile, or serves one that has an index.html. New commits deploy nightly, and Bistro rolls back by itself if the app is not healthy.
#Remove
Remove deletes the app. Purge also deletes the app's own data folder. A website folder is never deleted.