Prerequisites
Before installing FlexPrice, ensure you have the following installed:- Golang 1.23+
- Docker and Docker Compose
- Supported platforms:
- Linux-based environment
- macOS (Darwin)
- WSL under Windows
Quick Setup with Docker Compose
The fastest way to get FlexPrice running is using the automated Docker Compose setup:Run the setup script
- Start all required infrastructure (PostgreSQL, Kafka, ClickHouse, Temporal)
- Build the FlexPrice application image
- Run database migrations and initialize Kafka topics
- Start all FlexPrice services (API, Consumer, Worker)
Accessing Services
Once installation is complete, you can access:- FlexPrice API: http://localhost:8080
- Temporal UI: http://localhost:8088
- Kafka UI: http://localhost:8084 (with profile ‘dev’)
- ClickHouse UI: http://localhost:8123
The API base URL for SDK configuration should include
/v1: http://localhost:8080/v1Manual Installation
For development or custom setups, you can install FlexPrice components individually.Start Infrastructure Services
Start only the required infrastructure without the FlexPrice application:Initialize Databases
Initialize Kafka Topics
Create the required Kafka topics:Build and Run
Development Credentials
The default Docker Compose setup uses these credentials:PostgreSQL
ClickHouse
Kafka
API Authentication
The default development API key is:Useful Commands
Common commands for managing your FlexPrice installation:Optional: Kafka UI
To enable the Kafka UI for easier topic management:Next Steps
- Configure FlexPrice for your environment
- Choose a deployment mode for production
- Scale your deployment for high availability
Troubleshooting
Docker Issues
-
Ensure Docker is running:
-
Check container status:
-
View logs for a specific service: