This repo contains everything needed to run a musicbrainz slave server with search and replication in docker. You will need a little over 50 gigs of free space to run this with replication.
POSTGRES_VERSION)git clone https://github.com/metabrainz/musicbrainz-docker.gitcd musicbrainz-dockersudo docker-compose up -dsudo docker-compose -f docker-compose.yml -f docker-compose.public.yml up -dsudo docker exec musicbrainzdocker_musicbrainz_1 /set-token.sh <replication token>Create the database, download the latest dumps and populate the database
sudo docker-compose run --rm musicbrainz /createdb.sh -fetchCreate the database, and populate the database with existing dumps
sudo docker-compose run --rm musicbrainz /createdb.shFor development, to load sample data instead of full dump, use the flag -sample
In order to use the search functions of the web site/API you will need to build search indexes.
sudo docker-compose run --rm indexer /home/search/index.shReplication is run as a cronjob, you can update the crons.conf file to change when replication will be run.
To view the replication log file you can run this command
sudo docker-compose exec musicbrainz /usr/bin/tail -f slave.logyou will need to enter the postgres password that you set in postgres.env.
sudo docker-compose run --rm musicbrainz /recreatedb.sh
or to recreate and fetch new data dumpssudo docker-compose run --rm musicbrainz /recreatedb.sh -fetchWhen there is a schema change you will need to follow the directions posted by the musicbrainz team to update the schema.
sudo docker exec musicbrainzdocker_musicbrainz_1 /replication.sh).sudo docker exec -ti musicbrainzdocker_musicbrainz_1 bash.git fetch origin && git checkout NEW_SCHEMA_BRANCH../upgrade.sh.exit.sudo docker-compose stop musicbrainz then sudo docker-compose build musicbrainz then sudo docker-compose up -d --no-deps musicbrainzIf anything doesn't work create an issue and submit a pull request.
Content type
Image
Digest
Size
199.7 MB
Last updated
over 7 years ago
docker pull ta264/musicbrainz-postgres