Skip to content

Self-hosted database manager with real-time metrics, backup scheduling, and multi-runtime support

License

Notifications You must be signed in to change notification settings

sirrobot01/dbnest

Repository files navigation

DBnest Logo

DBnest

A self-hosted database management platform. Spin up PostgreSQL, MySQL, MariaDB, or Redis instances in seconds.

License Go Version Frontend Backend

Table of Contents

Overview

DBnest is a lightweight, self-hosted database management platform that allows developers and teams to quickly provision, manage, and monitor multiple database instances through a unified web interface. It uses containerization technologies like Docker to isolate each database instance, making it easy to create, delete, and manage databases without complex setups.

Quick Start

Docker (Recommended)

docker run -d \
  -p 8080:8080 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v ~/config/dbnest:/data \
  cy01/dbnest:latest

Open http://localhost:8080

Binary

./dbnest --port 8080 --data ./data --runtime docker

Features

  • PostgreSQL (v12-16)
  • MySQL (v5.7, 8.0, 8.4)
  • MariaDB (v10.5-11)
  • Redis (v6, 7)
  • Real-time metrics & charts
  • Network Topology Visualization
  • Backup & restore
  • Built-in authentication
  • Docker, Podman, containerd support

CLI Options

--port PORT       HTTP port (default: 8080)
--data PATH       Data directory (default: ./data)
--socket PATH     Container socket path
--runtime NAME    Runtime: docker, podman, containerd (default: docker)
--debug           Enable debug logging

Docker Compose

# docker/docker-compose.yml
services:
  dbnest:
    image: cy01/dbnest:latest
    ports:
      - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - dbnest-data:/data

volumes:
  dbnest-data:

Development

# Backend
go run ./cmd/dbnest

# Frontend (separate terminal)
cd frontend && npm install && npm run dev

# Or use Taskfile
task run

Requirements

  • Docker/Podman/containerd

Screenshots

Click to view screenshots

Dashboard
Dashboard - Manage all your database instances

Database Details
Database Details - Metrics, logs, and connection info

Network Topology
Network Topology - Visualize your database network

License

MIT

About

Self-hosted database manager with real-time metrics, backup scheduling, and multi-runtime support

Topics

Resources

License

Stars

Watchers

Forks

Packages