DbGate

stack Database / Development / Tools

Database manager in the browser for PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB, Redis and more: browse and edit tables, write queries, compare schemas, draw diagrams and import or export data.

Install DbGate

It isn't in the main Portainer Templates list yet, so use this one. Portainer takes one URL at a time, so it swaps out whatever list you had before.

In Portainer, head to Settings --> App Templates, paste this in as the URL and save.

https://raw.githubusercontent.com/NotAFlightRisk/portainer-templates-extras/main/templates.json
  1. Open App Templates and pick DbGate.
  2. Fill in Password. Everything else can stay as it is.
  3. Hit Deploy the stack, then open http://<your-server>:3600 in a browser.

Before you start

Set a password before you deploy, since the stack won't start without one. Then open http://<your-host>:3600 (or whichever port you picked) and log in as admin. Each browser gets asked once about anonymous usage analytics, which stay off unless you say yes. Add your databases with New Connection, and use dockerhost as the server for one published on the Docker host itself. A restart logs you out, nothing else is lost. Saved connections, queries and uploads live in the dbgate-data volume. Whenever someone opens it, DbGate's server also asks dbgate.cloud for new shared scripts and a premium advert, mentioning which kinds of database you use. Docs: docs.dbgate.io

Settings

What the Portainer form asks for. With compose they go in the .env file instead.

VariableWhat it's forDefault
DBGATE_PASSWORDPassword (required) For logging in as admin. DbGate has no login at all without one, hence required. Needs filling in
DBGATE_PORTHost port for the web UI 3600

Services

The containers this stack runs, with ports as they come out of the box.

ServiceImagePorts
dbgatedbgate/dbgate:latest3600:3000

More apps