{"repo":"mirzakhany/dbctl","free":true,"listed":false,"github":"https://github.com/mirzakhany/dbctl","clone":"git clone https://github.com/mirzakhany/dbctl.git","description":"DBCTL is a tool designed to make running ephemeral databases in a Docker container easy and fast.","language":"Go","stars":10,"topics":["database","golang","postgresql","redis","testing"],"license":"MIT","category":"databases-storage","readme_excerpt":"DBCTL DBCTL runs throwaway databases in Docker so tests do not have to share one. It starts the database, applies your migrations and sample data, prints a connection URL, and cleans up after itself. - Run a database with applied migration files and sample data - Get the connection URL and use whatever tool you like to connect - Launch a web UI for the database, where one is available - Give every unit test its own fresh database through the Go and Python SDKs - Clean the databases up when you are done DBCTL is not intended for running databases in production. Its primary purpose is to simplify testing and practice with no hassle. Supported databases Database Command Default port Versions Migrations Fixtures UI -------- --------- ------------ -------------------------------------------------------------- ---------- ------------------- ------------- Postgres pg 15432 10.3.2, 11.2.5, 11.3.2, 12.3.2, 13-3.1, 13.3.2, 14.3.2 (default) .sql .sql pgweb Redis rs 16379 7.0.4 – .redis / .txt / .lua – MongoDB mdb 27017 6.0, 7.0 (default) .js / .json .js / .json mongo-express Postgres images include PostGIS. Pass --ui to start the web UI where one exists. Install Or grab a prebuilt binary from the releases page, or run it from Docker: Note: with a rootless docker installation the socket is at $HOME/.docker/run/docker.sock . Quick start Add -d to keep it running in the background, then list and stop what is running: Migrations and fixtures may be organised in subdirectories; files are app","default_branch":null,"files":null,"tree":[],"storefront":"/r/mirzakhany","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mirzakhany/dbctl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}