Install CUSTODIA Server on Ubuntu
Start Server and PostgreSQL with Docker Compose and initialize the first administrator.
1. About the application
To receive the installation scripts package and get access to download the Docker images, contact contato@custodia-systems.com.br.
2. Prerequisites
- Prepare an Ubuntu host with sudo, access to the Docker registry and licensing service, and an architecture compatible with the supplied image.
- Have the CUSTODIA_SERVER operational identity, including its private key and matching certificate, and a licensing-service URL reachable from the container.
3. Installation
Extract the package to a restricted directory and open the folder containing install.sh and compose.yaml. Set up Docker Engine, Compose, and dependencies with the packaged script.
sudo bash install-docker.shConfigure and start the containers
If the package contains only .env.example, copy it to .env. Check CUSTODIA_IMAGE, CUSTODIA_LICENSE_URL, and the persistent paths MEDIA_PATH, EXTRACTION_PATH, and POSTGRES_DATA_PATH. The installer can generate a password for a new PostgreSQL database. For an existing database, supply the current password.
If the package does not contain the identity, place the files at secrets/server-private.pem and secrets/server-certificate.jwt or configure their paths in .env.
sudo bash install.sh
If the installer prompts for registry login, use the account with download permissions supplied by Custodia Systems in the terminal.
5. First use
sudo bash status.sh
sudo bash logs.sh
Check the status and follow the logs until Server finishes starting and creates its tables. Exit the logs with Ctrl+C and initialize the administrator with sudo bash bootstrap.sh.
sudo bash bootstrap.sh
On the host, open http://localhost:18080/custodia/ with the default settings. Sign in with the initial admin account and change the password before making the service accessible. Adjust the address to the port and context in .env.
6. Next steps
To update, follow the new release package instructions, check the tag in CUSTODIA_IMAGE, and run sudo bash update.sh. Preserve the Compose project name, identity, and data paths. Use sudo bash backup.sh /destination/custodia.dump for PostgreSQL and back up media, extractions, and identity separately.