CorfedoCorfedoDocs
Reference

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

CommandWhat it doesGuide
installInstalls, or updates an existing installation. The default command.Install on a single host
updateUpdates to the latest or the given release. For the installed release, applies .env and configuration changes again.Update
renew-certificatesRenews the workload certificates, the internal certificates Corfedo's services use between themselves, and restarts the servicesCertificates and trust
statusShows the release, the services, certificate expiry, artifact storage and whether the installation is readyStatus and troubleshooting
backupStops Corfedo, takes a recovery set in backups/ and starts it againBackup and recovery
restore SETRestores a recovery set from backups/ into a new data generationBackup and recovery
cleanupLists earlier data generations, replaced directories, releases and recovery setsCleanup and uninstall
cleanup --remove ITEMRemoves one listed item after confirmationCleanup and uninstall
recover-sign-inPrints a single-use link that repairs sign-in and appoints an administratorSecurity
clear-network-listRemoves the workspace's network list, so it can be used from any networkSecurity
uninstallRemoves 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 platformStatus 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.

OptionDefaultMeaning
--dir DIR$HOME/corfedoThe installation directory
--version VERSIONThe latest releaseinstall and update: the release to install or update to
--bundle PATHA downloadinstall and update: a release bundle directory or archive to use instead of downloading
--host NAMEcorfedo.localhostThe workspace host name. The account service uses auth.<host>.
--port PORT443The HTTPS port
--bind ADDRESS127.0.0.1 for .localhost names, 0.0.0.0 otherwiseThe address to listen on
--tls local|acme|fileslocal for .localhost names, otherwise acmeCertificates from Caddy's local certificate authority, from Let's Encrypt, or from files you provide
--acme-email EMAILThe --admin-email valueThe contact address for Let's Encrypt. Required with acme.
--certificate FILE --key FILEWith --tls files: a certificate chain and key that cover the host and auth.<host>
--ca FILEPrivate certificate authorities Corfedo trusts, such as the issuer of --certificate or of your OpenID Connect provider
--identity bundled|ownbundledThe bundled account service, or your organization's OpenID Connect provider
--admin-email EMAILThe first account of the bundled account service, which becomes the Corfedo administrator. Required with bundled.
--admin-name "FIRST LAST"Corfedo AdministratorIts name
--storage-gib N32The storage budget for indexes, in GiB
--instance NAMEcorfedoThe installation name, after corfedo- in the Compose project and volume names
--yesinstall: do not ask, use the options and the defaults. restore and uninstall: do not ask for confirmation.
--no-browserinstall: do not open the browser

Files

Path in the installation directoryContents
.envYour answers, generated database passwords and values the installer manages. Installation settings lists the values you change here.
VERSIONThe 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.yamlYour own Compose changes, used when present. Never written by the installer.
backups/Recovery sets taken by updates and by backup
UPDATINGPresent while an update runs: the previous release, the target and the update's recovery set
install.shThe 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.

NameHoldsIn a recovery set
postgresThe database of Corfedo and of the bundled account serviceYes
storageThe indexesYes
caddyCaddy's certificates and stateYes
indexerThe indexer's repository copies and cache, at most 10 GiBNo. Filled again when repositories are next indexed.
searchThe search node's cacheNo. Rebuilt from the indexes.

On this page