lbry-docker/lbrycrd
2019-11-04 15:16:00 -05:00
..
compose Changes to allow RUN_MODE=regtest to stuff/auto_advance.sh 2019-10-10 11:14:28 -04:00
stuff add snapshot download, fix binary name, drop chainquery runmode, small refactors 2019-11-04 15:16:00 -05:00
.gitignore added regtest setup for lbrycrd. 2018-12-27 23:17:58 -05:00
deploy.sh add snapshot download, fix binary name, drop chainquery runmode, small refactors 2019-11-04 15:16:00 -05:00
Dockerfile-linux-x86_64-production add snapshot download, fix binary name, drop chainquery runmode, small refactors 2019-11-04 15:16:00 -05:00
README.md add snapshot download, fix binary name, drop chainquery runmode, small refactors 2019-11-04 15:16:00 -05:00

lbrycrd

Docker image tags

lbry/lbrycrd [linux-x86_64-production](https://github.com/lbryio/lbry-docker/blob/master/lbrycrd/Dockerfile-linux-x86_64-production) (Latest release)

Configuration

The lbrycrd container comes with a default configuration you can use for production. Extra configuration is optional.

The container includes a start script that offers a flexible configuration style. It allows you to mount your own lbrycrd.conf file, or use environment variables, or a mix of both.

Environment variables

The environment variables override the values in the mounted config file. If no mounted config file exists, these variables are used to create a fresh config.

  • PORT - The main lbrycrd port
  • RPC_USER - The rpc user
  • RPC_PASSWORD - The rpc user's password
  • RPC_ALLOW_IP - the subnet that is allowed rpc access
  • RPC_PORT - The port to bind the rpc service to
  • RPC_BIND - The ip address to bind the rpc service to

Example run commands

Running the default configuration:

docker run --rm -it -e RUN_MODE=default -e SNAPSHOT_URL="https://lbry.com/snapshot/blockchain" lbry/lbrycrd:linux-x86_64-production

Running with RPC password changed:

docker run --rm -it -e RUN_MODE=default -e RPC_PASSWORD=hunter2 lbry/lbrycrd:linux-x86_64-production

Running with a config file but with the RPC password still overridden:

docker run --rm -it -v /path/to/lbrycrd.conf:/etc/lbry/lbrycrd.conf -e RUN_MODE=default -e RPC_PASSWORD=hunter2 lbry/lbrycrd:linux-x86_64-production