Below is a summary of lessons learnt from my Docker installation, with helpful guidance given from @InvisibleMan78 and @yvanzo above. Please let me know if I make any further mistakes in my points below.
My environment:
Windows 11
VMWare Workstation 16 Player
Ubuntu 64-bit v22.04
Steps:
1.0 While being aware of points below, follow steps here: GitHub - metabrainz/musicbrainz-docker: Docker Compose project for the MusicBrainz Server with replication, search, and development setup
2.0 Set enough storage for VM. 50GB wasn’t enough, 300GB worked ok
3.0 Use frequent snapshots to rollback to a stable point when things go wrong. For VMWare Player this involves simply making a copy of the VM files. This can save a huge amount of time and rework effort.
4.0 Downloading the db files separately and running:
sudo docker-compose run --rm musicbrainz createdb.sh -fetch
without the fetch also saved me a lot of time and effort when things went wrong.
4.1 Download db files from musicbrainz ftp site. Ensure all files
are from the same datetime-stamped folder.
4.2 Run the above createdb.sh command **with** fetch just
briefly enough for the musicbrainz-docker_dbdump folder
to be created. Then quickly Ctrl-C to quit the command.
4.3 Use:
> sudo docker volume inspect --format '{{.Mountpoint}}' musicbrainz-docker_dbdump
to tell you where musicbrainz-docker_dbdump folder is located.
4.4 Copy downloaded db files to the musicbrainz-docker_dbdump.
4.5 Run **without** fetch flag:
> sudo docker-compose run --rm musicbrainz createdb.sh
5.0 Once database was created I chose not to install indexes but went straight to next step below.
6.0 Publish ports with:
#in musicbrainz-docker directory
git pull origin master;
admin/configure add publishing-db-port;
sudo docker-compose up -d
7.0 Install DBeaver. (I tried pgAdmin, but personally didn’t find it so user-friendly).
8.0 In DBeaver, connect to 0.0.0.0:5432, username: musicbrainz, password: musicbrainz. Also under PostgreSQL tab check the “Show all databases” checkbox.
9.0 Database should be in DBeaver ready to view and use!