From a012c0497422c513dc2785b28465ec8a7e20fd9c Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 14 Aug 2020 03:38:33 +0000 Subject: [PATCH] docker-compose.yml --- docker/Dockerfile.lbrycrd | 8 ++++++++ docker/docker-compose.yml | 42 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 docker/Dockerfile.lbrycrd create mode 100644 docker/docker-compose.yml diff --git a/docker/Dockerfile.lbrycrd b/docker/Dockerfile.lbrycrd new file mode 100644 index 000000000..b78bbda56 --- /dev/null +++ b/docker/Dockerfile.lbrycrd @@ -0,0 +1,8 @@ +FROM ubuntu:20.04 +RUN apt-get update && \ + apt-get install -y wget unzip && \ + wget -nv https://build.lbry.io/lbrycrd/block_info_fix_try2/lbrycrd-linux.zip && \ + unzip -d /bin lbrycrd-linux.zip && \ + rm -rf lbrycrd-linux.zip /var/lib/apt/lists/* +RUN lbrycrdd --version +ENTRYPOINT ["lbrycrdd"] diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 000000000..f87e128c4 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,42 @@ +version: "3.8" +volumes: + lbrycrd-data: +services: + postgres: + image: postgres:12 + environment: + POSTGRES_USER: lbry + POSTGRES_PASSWORD: lbry + lbrycrd: + image: lbry/lbrycrd + build: + context: . + dockerfile: Dockerfile.lbrycrd + volumes: + - lbrycrd-data:/root/.lbrycrd + command: > + -rpcbind=lbrycrd + -rpcallowip=0.0.0.0/0 + -rpcuser=lbryuser + -rpcpassword=lbrypass + -zmqpubhashblock=tcp://0.0.0.0:29000 + lbrynet: + image: lbry/lbrynet:fast_wallet_server_sync + depends_on: + - postgres + - lbrycrd + volumes: + - lbrycrd-data:/lbrycrd + command: > + start + --full-node + --api=0.0.0.0:5279 + --db-url=postgresql://lbry:lbry@postgres:5432/lbry + --workers=12 + --console=basic + --no-spv-address-filters + --lbrycrd-rpc-host=lbrycrd + --lbrycrd-rpc-user=lbryuser + --lbrycrd-rpc-pass=lbrypass + --lbrycrd-dir=/lbrycrd + --lbrycrd-zmq-blocks=tcp://lbrycrd:29000