Name: musicbrainz-docker
Owner: MetaBrainz Foundation
Description: musicbrainz slave server with search and replication
Forked from: jsturgis/musicbrainz-docker
Created: 2016-12-06 22:31:36.0
Updated: 2018-04-07 12:22:08.0
Pushed: 2017-11-11 07:01:38.0
Size: 68
Language: Perl
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repo contains everything needed to run a musicbrainz slave server with search and replication in docker. You will need a little over 20 gigs of free space to run this with replication.
git clone this-repo
cd this-repo
sudo docker-compose up -d
sudo 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 -fetch
Create the database, and populate the database with existing dumps
sudo docker-compose run --rm musicbrainz /createdb.sh
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.sh
you will need to enter the postgres password that you set in postgres.env.
sudo docker-compose run --rm musicbrainz /recreatedb.sh
When 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 ./admin/replication/LoadReplicationChanges
).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 musicbrainz
If anything doesn't work create an issue and submit a pull request.