Installer
Every install.sh command and option with its default, the files in the installation directory and the names of the data volumes.
install.sh installs and operates a single-host installation with Docker Compose. sh ~/corfedo/install.sh --help prints the commands and options of the installed release. Each command runs the installer of the release it works on. Guides are under Run an installation.
Commands
| Command | What it does | Guide |
|---|---|---|
install | Installs, or updates an existing installation. The default command. | Install on a single host |
update | Updates to the latest or the given release. For the installed release, applies .env and configuration changes again. | Update |
renew-certificates | Renews the workload certificates, the internal certificates Corfedo's services use between themselves, and restarts the services | Certificates and trust |
status | Shows the release, the services, certificate expiry, artifact storage and whether the installation is ready | Status and troubleshooting |
backup | Stops Corfedo, takes a recovery set in backups/ and starts it again | Backup and recovery |
restore SET | Restores a recovery set from backups/ into a new data generation | Backup and recovery |
cleanup | Lists earlier data generations, replaced directories, releases and recovery sets | Cleanup and uninstall |
cleanup --remove ITEM | Removes one listed item after confirmation | Cleanup and uninstall |
recover-sign-in | Prints a single-use link that repairs sign-in and appoints an administrator | Security |
clear-network-list | Removes the workspace's network list, so it can be used from any network | Security |
uninstall | Removes the containers and the network. Keeps the data, the configuration and the recovery sets. | Cleanup and uninstall |
compose ARGS... | Runs Docker Compose for the installation, such as compose ps or compose logs -f platform | Status and troubleshooting |
Options
The installer asks for the installation name, host, port, listen address, certificates, sign-in, first account and storage budget, and suggests the defaults below. --yes takes them without asking. --host to --instance apply to the first install only. Later runs read .env, see Installation settings, and refuse these options. Every command refuses an option it does not read.
| Option | Default | Meaning |
|---|---|---|
--dir DIR | $HOME/corfedo | The installation directory |
--version VERSION | The latest release | install and update: the release to install or update to |
--bundle PATH | A download | install and update: a release bundle directory or archive to use instead of downloading |
--host NAME | corfedo.localhost | The workspace host name. The account service uses auth.<host>. |
--port PORT | 443 | The HTTPS port |
--bind ADDRESS | 127.0.0.1 for .localhost names, 0.0.0.0 otherwise | The address to listen on |
--tls local|acme|files | local for .localhost names, otherwise acme | Certificates from Caddy's local certificate authority, from Let's Encrypt, or from files you provide |
--acme-email EMAIL | The --admin-email value | The contact address for Let's Encrypt. Required with acme. |
--certificate FILE --key FILE | With --tls files: a certificate chain and key that cover the host and auth.<host> | |
--ca FILE | Private certificate authorities Corfedo trusts, such as the issuer of --certificate or of your OpenID Connect provider | |
--identity bundled|own | bundled | The bundled account service, or your organization's OpenID Connect provider |
--admin-email EMAIL | The first account of the bundled account service, which becomes the Corfedo administrator. Required with bundled. | |
--admin-name "FIRST LAST" | Corfedo Administrator | Its name |
--storage-gib N | 32 | The storage budget for indexes, in GiB |
--instance NAME | corfedo | The installation name, after corfedo- in the Compose project and volume names |
--yes | install: do not ask, use the options and the defaults. restore and uninstall: do not ask for confirmation. | |
--no-browser | install: do not open the browser |
Files
| Path in the installation directory | Contents |
|---|---|
.env | Your answers, generated database passwords and values the installer manages. Installation settings lists the values you change here. |
VERSION | The active release |
releases/<version>/ | The release's installer, Compose file, Caddy and account service configuration and image list. Never edited. |
generated/ | Keys, certificates and secrets the installer generates. Keep it with your backups and do not edit it, except generated/tls/ca.crt, see Trust private CAs. |
compose.override.yaml | Your own Compose changes, used when present. Never written by the installer. |
backups/ | Recovery sets taken by updates and by backup |
UPDATING | Present while an update runs: the previous release, the target and the update's recovery set |
install.sh | The installer of the active release, for later commands |
Data volumes
The data lives in Docker volumes named corfedo-<instance>-<name>-<generation>, for example corfedo-corfedo-postgres-1. A restore starts a new generation and keeps the earlier one until cleanup removes it.
| Name | Holds | In a recovery set |
|---|---|---|
postgres | The database of Corfedo and of the bundled account service | Yes |
storage | The indexes | Yes |
caddy | Caddy's certificates and state | Yes |
indexer | The indexer's repository copies and cache, at most 10 GiB | No. Filled again when repositories are next indexed. |
search | The search node's cache | No. Rebuilt from the indexes. |