Dashboard

Docker (Local Development)

Get Fluxgate running locally in under 5 minutes with Docker Compose.

Requirements

  • Docker Desktop (with Docker Compose v2)
  • Git
  • 4GB+ available RAM
  • 10GB+ free disk space

Setup Steps

1

Clone the Repository

Download the Fluxgate source code.

git clone https://github.com/Anil175/fluxgate.git
cd fluxgate
2

Configure Environment

Copy the example env file. Defaults work for local development.

cp .env.example .env
3

Start All Services

Launch all 12 containers. First run downloads images (3-5 minutes).

docker compose up -d
4

Verify Services

Check all containers are running.

docker compose ps
5

Run Migrations

Create database tables.

docker compose exec api python -m shared.migrations.run
6

Seed Data

Create default roles, permissions, and starter API key.

docker compose exec api python seed.py

Running Services

ServicePortURL
Dashboard3000http://localhost:3000
API8000http://localhost:8000
Gateway8080http://localhost:8080
Swagger UI8000http://localhost:8000/docs
TimescaleDB5432localhost:5432
Redis6379localhost:6379
Kafka9092localhost:9092

Common Commands

Useful Commandsbash
# View logs for a specific service
docker compose logs -f api

# Restart a single service
docker compose restart api

# Stop everything
docker compose down

# Stop and remove all data (fresh start)
docker compose down -v

Hot Reload

The API and Dashboard containers support hot reload. Code changes are reflected automatically without restarting.