dbgate

dbgate/dbgate Docker Image

基于Web的界面,用于管理与探索SQL数据库数据

33 次收藏下载次数: 0状态:社区镜像维护者:dbgate仓库类型:镜像最近更新:4 天前
下载命令
点击查看

DbGate - community edition

  • Modern web-based data management tool
  • For enterprise scenarios, please use https://hub.docker.com/r/dbgate/dbgate-premium

Supported databases

  • Microsoft SQL Server
  • MySQL
  • MariaDB
  • PostgreSQL
  • Oracle
  • CockroachDB
  • Amazon Redshift
  • MongoDB
  • Redis
  • SQLite (don't use alpine version if you need SQLite)
  • ClickHouse
  • Firebird
  • DuckDB

DbGate web: [***]

Live demo on: [***]

Source code on GitHub: https://github.com/dbgate/dbgate/

How to Use This Image

Pull the image from the Docker Hub Repository

docker pull dbgate/dbgate

Use the following command to start a container with DbGate

docker run -it --name dbgate-instance --restart always -p <port on host>:3000 dbgate/dbgate

If you want to preconfigure connections:

docker run -it --name dbgate-instance --restart always -p <port on host>:3000 -e CONNECTIONS='mssql' -e LABEL_mssql='MS SQL' -e SERVER_mssql='SERVER_IP' -e USER_mssql='USER' -e PASSWORD_mssql='PWD' -e ENGINE_mssql='mssql@dbgate-plugin-mssql'  dbgate/dbgate

If you want to define connections in application, don't define CONNECTIONS environment variable. Instead, define volume mapping, so that saved connections are persisted. Volume mapping is needed also for persisting saved scripts, archives, application layers etc.

Or use following docker-compose fragment:

version: '3'
services:
  dbgate:
    image: dbgate/dbgate
    restart: always
    ports:
      - 80:3000
    volumes:
      - dbgate-data:/root/.dbgate
    environment:
      CONNECTIONS: con1,con2,con3,con4

      LABEL_con1: MySql
      SERVER_con1: mysql
      USER_con1: root
      PASSWORD_con1: TEST
      PORT_con1: 3306
      ENGINE_con1: mysql@dbgate-plugin-mysql

      LABEL_con2: Postgres
      SERVER_con2: postgres
      USER_con2: postgres
      PASSWORD_con2: TEST
      PORT_con2: 5432
      ENGINE_con2: postgres@dbgate-plugin-postgres

      LABEL_con3: MongoDB
      URL_con3: mongodb://mongo:27017
      ENGINE_con3: mongo@dbgate-plugin-mongo

      LABEL_con4: SQLite
      FILE_con4: /home/jan/feeds.sqlite
      ENGINE_con4: sqlite@dbgate-plugin-sqlite

volumes:
  dbgate-data:
    driver: local

Environment variables

For complete list of available environment variable settings, please use documentation

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表。

轩辕镜像加速拉取命令点我查看更多 dbgate 镜像标签

docker pull docker.xuanyuan.run/dbgate/dbgate:<标签>

DockerHub 原生拉取命令

docker pull dbgate/dbgate:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告