Use your own infrastructure
If you want to run FeatBit with your own infrastructure, this is totally possible and easy to do. This document will illustrate how to do it with docker compose, it can also be easily converted to Kubernetes.
Set Environment Variables
To use your own infrastructure, you need to modify some environment variables for each service. You can find the environment variables for each service in the following links:
- UI Environment Variables (opens in a new tab)
- API Server Environment Variables (opens in a new tab)
- Evaluation Server Environment Variables (opens in a new tab)
- Data Analytics Server Environment Variables (opens in a new tab)
Data Seeding
MongoDB
Check the MongoDB seed script (opens in a new tab) to seed your MongoDB database. This script assumes the database name is "featbit" (you can change it) which should be the same as MongoDb__Database
environment variable.
Postgres
Check the Postgres initialization scripts (opens in a new tab) for the database schema and seed data.
Kafka
You need to create the following topics in your kafka:
- featbit-feature-flag-change
- featbit-segment-change
- featbit-insights
- featbit-endusers