Deploying Docker Compose
You can deploy Self-Hosted Databand with Docker Compose.
This docker-compose deployment spins up a fully-charged Databand installation with a ready-to-use monitoring stack.
Follow these instructions to:
Requirements
- System requirements
-
- Operating system
- Recent Debian/Ubuntu/CentOS/RHEL(7) Linux
Internal PostgreSQL and Redis instances exist by default in docker-compose deployments. For production, use an external PostgreSQL instance. For more information about creating databases, see Storage for Databand metadata.
- Software requirements
-
- Docker
- Docker Compose - version 1.25.3 or higher
- rsync
/opt/databand directory. You can override this path with the environment variable DATABAND_INSTALLATION_PATH. For example, if you want to install Databand into the current directory, set the environment variable as follows. export DATABAND_INSTALLATION_PATH=. Installing Databand from tar.gz
For ease of use, install Databand under the root user. If you can't install it as the root user, make sure that you have permission to write to the /opt directory and to run docker and docker-compose.
- Download
databand-<ver>.tar.gzfrom IBM Passport and unarchive it with the following command:tar -xvf databand-<version>.tar.gz - Go to the
databand-/installationdirectory and run the following script to set up a basic configuration and prepare to run Databand.cd databand-<ver>/installation ./databand-cmd.sh setup - Load Docker images from the tar archive with:
./databand-cmd.sh load-images - Create secret keys by using:
./databand-cmd.sh create-secrets - Go to the
/opt/databanddirectory. Choose whether you want to use an external or local database, and complete the relevant step:- If you want to use an external PostgreSQL database: Open
custom.envand replaceDBND__WEBSERVER__SQL_ALCHEMY_CONNwith a Postgres connection string to an external database. - If you want to use a local PostgreSQL database: Open
custom.envand setCOMPOSE_FILE=docker-compose.yml:mods/local_pg.ymlDon't changeDBND__WEBSERVER__SQL_ALCHEMY_CONN.
- If you want to use an external PostgreSQL database: Open
- From the
/opt/databanddirectory, run the Databand start script:cd /opt/databand ./databand-cmd.sh start - Optional: Run
./databand-cmd.sh statusto validate that all the components are up and running. - Create a Databand user by running
./databand-cmd.sh create-userand then following the interactive prompt.
You can now access the Databand UI using the http://$INSTANCE_IP:8080/ URL, and log in with the user that you created in step 8. For more information about creating users through 3rd-party authentication, see Authentication providers.
Upgrading Databand using the tar.gz file
Follow these steps to upgrade Databand to a new version:
-
Download
databand-<ver>.tar.gzand unarchive it with the following command:tar -xvf databand-<ver>.tar.gz -
Go to the
databand-<ver>/installationdirectory and run:./databand-cmd.sh-upgrade-tar -
Optional: Run
./databand-cmd-shto validate that all components are up and running.
You can now access UI using the http://$INSTANCE_IP:8080/ URL.
Accessing Databand services
When Databand is successfully installed, you can access its services from your browser by using the following URL: HTTP://<server_where_databand_is_installed>:<service_port>.
The default local URL is http://localhost:8080.
-
webserveris accessible on http://localhost:8080 and points to the local directory. -
Prometheusis available at http://localhost:9090.