Platform
Installation guide for CREDEBL Platform Services
Last updated
Installation guide for CREDEBL Platform Services
Last updated
Before installing the CREDEBL Platform services, it is essential to ensure that your environment meets certain prerequisites. Properly setting up these requirements will help facilitate a smooth installation process and optimal performance of the platform. Following these guidelines will help prevent potential issues and ensure that the CREDEBL Platform services are installed and operate as intended.
Here is the list of software needed to get started:
Operating System: The platform supports Linux and macOS systems. Note that only X86_64
architecture is currently supported.
Git: Ensure you have Git installed (version 2.34.1 or higher)
Docker Engine: Required for containerization
Linux: Docker will be automatically installed by the setup script.
macOS:
Install manually: Download Docker Desktop from .
Launch Docker: After installation, open the Docker Desktop application.
Available Ports:
The platform requires the following ports to be available on your machine:
5432: Default PostgreSQL database port
5000: CREDEBL API service
4222: NATS messaging system
6379: Redis caching service
8080: Keycloak service port
4000: Schema file server port
Here is the list of prerequisites software we will need for CREDEBL:
SendGrid is used for sending email. You must obtain an API key from your SendGrid account.
The platform uses Amazon S3 for secure file storage. Prepare your:
AWS Access Key ID
AWS Secret Access Key
S3 Bucket Name
AWS Region
To setup, use the provided script which automatically checks your environment, installs Docker Engine, Docker Compose and Terraform on Linux, and runs the docker compose up
command. This helps ensure all dependencies are met and streamlines the startup process for CREDEBL.
Clone the Repository Begin by cloning the CREDEBL installation repository from GitHub. This repository contains all necessary scripts and configurations.
Grant Execution Permissions
The installation script requires executable permissions to run.
This command makes the setup.sh
script executable.
What the script does:
Environment Check: Verifies your OS (Linux/macOS) and architecture
Installs Dependencies
Linux: Auto-installs Docker and Docker Compose
macOS: Requires manual Docker installation first
Sets Up Terraform
Installs Terraform (if missing)
Keycloak Configuration
Initializes Keycloack configuration
User Input Prompt: Requests the following details:
Your machine's IP address (for network configuration).
SendGrid API Key (for email services).
AWS S3 credentials (for file storage).
Execute Docker command
Executes docker compose up command.
The script will then deploy all necessary containers and services.
After installation, verify that all components are running correctly.
Run the following command to list all active Docker containers:
Initially, you should see 21 services running
After a few minutes, the seed service will automatically stop
Final running state should show 20 active services
When you no longer need the local infra, you can clean up all resources using the provided script.
Grant Permissions to the Destroy Script
Ensure the script has executable permissions:
Firewall Configuration: If you encounter connection issues, ensure your firewall allows traffic on the ports listed in the prerequisites.
Troubleshooting: If containers fail to start, check the logs using:
Once all containers are running, you can access the CREDEBL API at: