ByteBase: Schema Migration
Deploy Bytebase with Pigsty’s Docker Compose template and connect it to external PostgreSQL.
Bytebase is a database schema change and version management tool.
Pigsty provides a ready-to-use Compose template in app/bytebase. It listens on 8887 by default and connects to external PostgreSQL via BB_PGURL.
Quick Start
cd ~/pigsty/app/bytebase
vi .env # check BB_PORT / BB_DOMAIN / BB_PGURL
make up
Access:
http://ddl.pigstyhttp://<IP>:8887
After first startup, initialize the admin account using the Bytebase setup wizard.
External PostgreSQL
Default connection string example:
postgresql://dbuser_bytebase:[email protected]:5432/bytebase?sslmode=prefer
You can create the database user and database in Pigsty first:
bin/pgsql-user pg-meta dbuser_bytebase
bin/pgsql-db pg-meta bytebase
Common Commands
make up
make log
make info
make stop
make clean
References
- Bytebase docs: https://www.bytebase.com/docs/
- Pigsty template: https://github.com/pgsty/pigsty/tree/main/app/bytebase
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.