Self-Hosting FlexPrice
Learn how to set up and run FlexPrice on your own infrastructure
Prerequisites
Before you begin, make sure you have the following installed:
Docker and Docker Compose
One of these supported platforms:
- Linux-based environment
- macOS (Darwin)
- WSL under Windows
Quick Setup with Docker Compose
The easiest way to get started is using our Docker Compose setup:
This single command takes care of everything you need to get started:
- Starting all required infrastructure (PostgreSQL, Kafka, ClickHouse, Temporal)
- Building the FlexPrice application image
- Running database migrations and initializing Kafka
- Starting all FlexPrice services (API, Consumer, Worker)
Accessing Services
Once setup is complete, you can access:
FlexPrice API
Temporal UI
Kafka UI
ClickHouse UI
Useful Commands
Here are some common commands you might need during development:
Running Without Docker
If you prefer to run the application directly:
Connection Details
Use these credentials to connect to the various services:
API Documentation
FlexPrice provides comprehensive API documentation in OpenAPI 3.0 format.
Setting up Postman
- Open Postman
- Click on “Import” in the top left
- Select “Import File”
- Choose
docs/swagger/swagger-3-0.json
- Click “Import”
- Create a new environment for local development:
- Name: Local
- Variable:
baseUrl
- Value:
http://localhost:8080/v1
- Variable:
apiKey
- Value:
0cc505d7b917e0b1f25ccbea029dd43f4002edfea46b7f941f281911246768fe
Troubleshooting
If you encounter issues during setup or operation, try these troubleshooting steps:
Need Help?
If you’re still experiencing issues after trying the troubleshooting steps, please:
- Check our GitHub Issues for similar problems
- Join our Discord community for real-time support
- Contact us at support@flexprice.io