drawdb Documentation

Free, simple, and intuitive online database diagram editor and SQL generator.

RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy drawdb on any server, homelab, or cloud container platform.

1-Click Terminal Command
bash (docker run)
docker run -d --name drawdb -p 5173:5173 --restart always node:20-alpine
Configured Services & Ports
โš™๏ธ drawdb
image: node:20-alpine
๐Ÿ”Œ Ports: 5173:5173
docker-compose.yml
yaml (docker-compose.yml)
services:
  drawdb:
    image: node:20-alpine
    container_name: drawdb
    ports:
      - 5173:5173
    working_dir: /var/www/html
    volumes:
      - ./:/var/www/html
    command: sh -c "npm install && npm run dev -- --host"
    networks:
      - default

networks:
  default:
    driver: bridge

Technical Documentation: drawdb-io/drawdb

โ„น๏ธ Provenance: Multi-Tier Ingestion ยท CodeWiki Reference

Overview (`README.md`)

Free, simple, and intuitive database schema editor and SQL generator.

DrawDB is a robust and user-friendly database entity relationship diagram (ERD) editor right in your browser. Build diagrams with a few clicks, export and import SQL scripts, generate migrations, customize your editor, and more without creating an account. See the full set of features on here.

Getting Started

Local Development

bash
git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run dev

Build

bash
git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run build

Docker Build

bash
docker build -t drawdb .
docker run -p 3000:80 drawdb

If you want to enable sharing, set up the server and environment variables according to .env.sample. This is optional unless you need to share files.

With the Docker image, pass the server URL when starting the container. No rebuild is needed:

bash
docker run -p 3000:80 -e VITE_BACKEND_URL=https://your-drawdb-server.example.com ghcr.io/drawdb-io/drawdb:latest

Contributing

Please see CONTRIBUTING.md for guidelines on how to contribute to this project.

Support


--- METRICS ---