使用PGWeb从网页浏览PostgreSQL数据

使用Docker拉起PGWEB,以便从浏览器进行小批量在线数据查询

公开Demo地址:<http://cli.pigsty.cc>

PgWeb 网页客户端 - 图1

使用Docker Compose拉起PGWEB容器:

1. cd ~/pigsty/app/pgweb ; docker-compose up -d

接下来,访问您本机的 8886 端口,即可看到 PGWEB 的UI界面: <http://10.10.10.10:8886>

您可以尝试使用下面的URL连接串,通过 PGWEB 连接至数据库实例并进行探索。

1. postgres://dbuser_meta:DBUser.Meta@10.10.10.10:5432/meta?sslmode=disable
2. postgres://test:test@10.10.10.11:5432/test?sslmode=disable

快捷方式

1. make up         # pull up pgweb with docker-compose
2. make run        # launch pgweb with docker
3. make view       # print pgweb access point
4. make log        # tail -f pgweb logs
5. make info       # introspect pgweb with jq
6. make stop       # stop pgweb container
7. make clean      # remove pgweb container
8. make pull       # pull latest pgweb image
9. make rmi        # remove pgweb image
10. make save       # save pgweb image to /tmp/pgweb.tgz
11. make load       # load pgweb image from /tmp

最后修改 2022-06-05: add app docs for wiki.js (820bfc3)