Podman
The silo image holds the control plane with the console compiled in. It makes every Bot’s machine through Podman’s socket, as your own user: nothing here runs as root. This is the install with the network filter.
For a machine that runs Silo and nothing else, SiloOS does all of this for you.
Before you start
Section titled “Before you start”-
Turn on your user’s Podman socket, and let it run while you are signed out:
Terminal window systemctl --user enable --now podman.socketsudo loginctl enable-linger "$USER" -
Make Silo’s directory and give it to your user:
Terminal window sudo mkdir -p /var/lib/silosudo chown "$USER": /var/lib/silo
With podman-compose
Section titled “With podman-compose”Put these two files in a directory of their own.
SILO_VERSION=v1.0.0SILO_PUBLIC_URL=https://silo.example.comSILO_DB_PASSWORD=change-meSILO_ADMIN_PASSWORD=change-me-too# Not "silo": compose would name containers silo-…, which is the prefix of# the containers Silo makes itself.name: silohost
# keep-id below cannot be used inside a pod.x-podman: in_pod: false
services: db: image: docker.io/pgvector/pgvector:pg17 container_name: silodb restart: unless-stopped environment: POSTGRES_USER: silo POSTGRES_PASSWORD: ${SILO_DB_PASSWORD} POSTGRES_DB: silo volumes: - silodb:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U silo -d silo"] interval: 5s timeout: 3s retries: 30
silo: image: ghcr.io/d-513/silo:${SILO_VERSION} container_name: silo restart: unless-stopped depends_on: db: condition: service_healthy # The container's uid 1000 becomes you, who owns the socket and the data. userns_mode: "keep-id:uid=1000,gid=1000" security_opt: - label=disable volumes: - ${XDG_RUNTIME_DIR}/podman/podman.sock:/run/docker.sock # The same path on both sides. Never a named volume. - /var/lib/silo:/var/lib/silo ports: - "8080:8080" # the console, and the Bots' machines - "8081:8081" # the workers' port, where the network filter sends the Bots' machines - "3479:3479/udp" # calls - "3479:3479/tcp" - "2525:2525" # mail; forward port 25 here if you use it environment: SILO_DATABASE_URL: postgres://silo:${SILO_DB_PASSWORD}@db:5432/silo?sslmode=disable SILO_PUBLIC_URL: ${SILO_PUBLIC_URL} SILO_BOOTSTRAP__EMAIL: ${SILO_ADMIN_EMAIL} SILO_BOOTSTRAP__PASSWORD: ${SILO_ADMIN_PASSWORD}
volumes: silodb:podman-compose up -dpodman-compose logs -f siloWith podman run
Section titled “With podman run”The same control plane, next to a Postgres 17 with pgvector that you already run:
podman run -d --name silo --restart unless-stopped \ --userns=keep-id:uid=1000,gid=1000 --security-opt label=disable \ -v "$XDG_RUNTIME_DIR/podman/podman.sock:/run/docker.sock" \ -v /var/lib/silo:/var/lib/silo \ -p 8080:8080 -p 8081:8081 -p 3479:3479/udp -p 3479:3479/tcp -p 2525:2525 \ -e SILO_DATABASE_URL=postgres://… \ -e SILO_PUBLIC_URL=https://silo.example.com \ -e SILO_BOOTSTRAP__PASSWORD=change-me \ ghcr.io/d-513/silo:v1.0.0What has to be right
Section titled “What has to be right”- The socket at
/run/docker.sockinside the container. The control plane makes every other container through it. - The data directory at the same path as on the host (
/var/lib/siloon both sides). The engine binds folders under it into the Bots’ machines and reads those paths on the host, so a different path or a named volume points every workspace at nothing. - Ports 8080 and 8081 published on the host. The Bots’ machines dial the control plane there: 8081 through the network filter, 8080 without it. Put TLS in front of 8080 for people (Reverse proxy), keep both from the internet, and set
SILO_PUBLIC_URLto the proxy’s address. - No container named
silo-…. That prefix belongs to the containers Silo makes.
The first admin is made at the first start from SILO_BOOTSTRAP__*, and those two settings do nothing once an admin exists. Use the newest version from the releases in place of v1.0.0.
Then go on with Getting started, and put a reverse proxy in front.
Update
Section titled “Update”Change SILO_VERSION and bring it up again:
podman-compose pull && podman-compose up -dA control plane runs the Bot and sidecar images of its own version, and fetches them itself. A running Bot gets its new image the next time it starts from stopped.
Not covered
Section titled “Not covered”- TLS. The image serves plain HTTP on 8080; a reverse proxy in front is yours to run. Reverse proxy has examples.
- Mail on port 25. A rootless container cannot publish a port below 1024, so forward 25 to 2525 on the host.
- Backups of the database volume and
/var/lib/silo.