Bioflow AI

Using Podman

Deploy BioFlow AI and run containerized analysis tools with Podman

BioFlow AI natively supports Podman for infrastructure services and the Podman API for bioinformatics tool containers. The package bundles a dedicated Podman Compose template that auto-init applies automatically—no manual template edits needed.

This guide targets rootless Podman on Linux. On macOS and Windows, Podman typically runs inside a Podman machine, where host networking and mount paths may differ.

Install Podman and Compose

Install Podman along with a Compose provider for podman compose (most Linux distributions ship podman-compose directly):

sudo apt update
sudo apt install -y podman podman-compose

Verify the installation:

podman --version
podman compose version

auto-init prefers podman compose and automatically falls back to podman-compose if needed.

Install BioFlow AI with the Podman extra

Include --extra podman so the backend can communicate with the Podman API to launch tool containers:

mkdir bioflow-ai && cd bioflow-ai
uv init --bare --python 3.13
uv add --extra podman bioflow-ai

Start the Podman socket

For rootless Podman with systemd, enable the user socket:

systemctl --user enable --now podman.socket

Verify that the socket is active:

podman info
ls /run/user/$(id -u)/podman/podman.sock

If systemd user services are unavailable, start the socket for the current session:

podman system service --time=0 unix:///run/user/$(id -u)/podman/podman.sock

Run the backend processes and the Podman socket as the same user. When managing the backend with systemd, ensure XDG_RUNTIME_DIR is preserved.

Run automatic initialization

From your deployment directory:

uv run bioflow-ai auto-init

Select podman at the Container runtime prompt. The wizard will:

  1. Write container = "podman" to config.toml.
  2. Generate docker-compose.yml from the bundled Podman template and synchronize ports and the Web UI backend URL.
  3. Run milvus-volume-init and rustfs-volume-init using --profile volume-init to set up volume ownership before starting the long-running services.
  4. Wait for PostgreSQL, RustFS, and Milvus to pass health checks, then proceed to database preparation, model configuration, and preset data import.

Everyday commands

podman compose ps
podman compose logs -f standalone
podman compose up -d

If the wizard fell back to podman-compose, replace podman compose with podman-compose in the commands above.

Troubleshooting

Backend cannot reach the Podman API

systemctl --user status podman.socket
echo "$XDG_RUNTIME_DIR"
ls -l /run/user/$(id -u)/podman/podman.sock

Make sure the user running the API and workers has access to the socket.

Compose is unavailable

Check both supported commands (only one needs to work):

podman compose version
podman-compose --version

Web UI cannot reach the API

Confirm that uv run bioflow-ai api is running in your deployment directory and that [network].host is set to 0.0.0.0. If you changed the API port manually after initialization, update BACKEND_API_URL for web-ui in docker-compose.yml to match.

Switching back to Docker

Rerun uv run bioflow-ai auto-init and choose docker at Container runtime, or set [docker].container = "docker" in config.toml and rerun the wizard while keeping the existing configuration. The wizard will regenerate docker-compose.yml from the Docker template.

On this page