Guided install
homespace-ctl is the administration tool of Home Space. Its install command asks a few questions, writes the compose file, the settings and the secrets, starts the server and offers to create your first administrator.
It builds the same setup as Install the server, a db and an app container from the pre-built image, with more choices: Docker or Podman, secrets in files or in .env, data in volumes or in host folders owned by a dedicated user, and nginx or no proxy. To see each step, or to write the files yourself, follow the manual guide instead.
What you need
- A Linux machine (x86-64) with Docker and the Compose plugin, or Podman with
podman compose. sudorights, for creating the installation directory and, if you choose host folders, the service user.- For use from other devices: a domain name pointing at the machine and port 443 open, as described under What you need. The installer can write an example nginx site for it.
1. Download homespace-ctl
Each release has homespace-ctl for Linux x86-64 (a static binary that runs on any distribution), Windows x86-64 and macOS on Apple Silicon. Set VERSION to the latest release:
VERSION=0.15.1 NAME=homespace-ctl-$VERSION-linux-x86_64 BASE=https://github.com/home-space-app/home-space/releases/download/v$VERSION curl -fsSLO $BASE/$NAME.tar.gz curl -fsSLO $BASE/SHA256SUMS sha256sum -c --ignore-missing SHA256SUMS tar -xzf $NAME.tar.gz sudo install -m 755 $NAME/homespace-ctl /usr/local/bin/ homespace-ctl --version
The installer pins the server image to its own version (homespaceapp/home-space:0.15.1), because the two are released together.
2. Run the installer
homespace-ctl install # add --dry-run to see the files without changing anything
Press Enter to take the default answer. It asks:
| Question | Choices |
|---|---|
| Container engine | Docker or Podman, when both are installed. |
| Installation directory | Where compose.yaml goes; default /opt/homespace. It must not exist yet. |
| Secrets | One file per secret under secrets/, mounted as compose secrets (the default), or a .env file with mode 600. |
| Storage | Container volumes, or host folders owned by a dedicated user (a new homespace system user by default). The folders must not exist yet. |
| Database user and password, JWT secret | Generated unless you type your own. |
| Reverse proxy | For nginx it writes an example site to nginx/<server name>.conf, which you then install yourself (see Reverse proxy with nginx). |
| Public URL | The address users open, such as https://files.example.com. |
| Sign-in | Passwords, single sign-on, or both. Single sign-on needs an https:// public URL. |
It always generates HOMESPACE_SECRETS_KEY, so users can add an authenticator app. Steps that need root, such as creating the user and the directories, go through sudo. With rootless Podman the containers run as you; run the installer with sudo to use a dedicated user instead.
The server is published on a free port on 127.0.0.1, or on all interfaces when no proxy is used and the public URL is not local. The database is reachable only inside the compose network. Last, it starts the containers and offers to create the first administrator.
3. Manage the server
The installer records where the installation is in ~/.config/home-space/installation.toml of the user who ran it, so run the other commands as that user. They run inside the app container, which has the database and the files at hand:
homespace-ctl user add alice # prompts for the password homespace-ctl user list homespace-ctl secrets rotate # see "Rotate the secrets" in the install guide
The command reference lists every command. To change a setting, edit .env in the installation directory and run sudo docker compose up -d (or podman compose up -d) there.
The compose project is named homespace. install refuses when a project of that name already exists in another directory; set HOMESPACE_COMPOSE_PROJECT to install a second one next to it.
Update
Download the new homespace-ctl as in step 1. Then change the image tag in compose.yaml to the new version and pull it:
cd /opt/homespace sudo sed -i 's|homespaceapp/home-space:.*|homespaceapp/home-space:0.15.1|' compose.yaml sudo docker compose pull sudo docker compose up -d
Back up as described under Back up first; keep a copy of .env and of secrets/ as well.