From 8f2638e9b89829aef99654a7e18acfac3a9b0e0e Mon Sep 17 00:00:00 2001 From: NicolasDorier Date: Fri, 29 Sep 2017 16:20:02 +0900 Subject: [PATCH] Remove current sample --- DockerFile | 9 --------- README.md | 27 ++++++++++++--------------- docker-compose.yml | 15 --------------- 3 files changed, 12 insertions(+), 39 deletions(-) delete mode 100644 DockerFile delete mode 100644 docker-compose.yml diff --git a/DockerFile b/DockerFile deleted file mode 100644 index cd9efc7..0000000 --- a/DockerFile +++ /dev/null @@ -1,9 +0,0 @@ -FROM microsoft/dotnet:2.0.0-sdk - -RUN git clone https://github.com/btcpayserver/btcpayserver -RUN cd btcpayserver && dotnet restore && cd BTCPayServer && dotnet build -c Debug -EXPOSE 23001 -WORKDIR /btcpayserver/BTCPayServer -ENTRYPOINT ["dotnet", "bin/Debug/netcoreapp2.0/BTCPayServer.dll"] -ENV POSTGRES="User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver" -CMD ["--testnet", "--explorercookiefile=/.cookie", "--explorerurl=https://nbxplorer-testnet-public.azurewebsites.net/", "--bind=0.0.0.0"] \ No newline at end of file diff --git a/README.md b/README.md index 86dd6c8..1767218 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,20 @@ # How to use -Mainnet is not support for now, as BTCPay is under development. -Running on TestNet with postgres database: +Here is BTCPay Architecture -``` -git clone https://github.com/btcpayserver/btcpayserver-docker -cd btcpayserver-docker -docker-compose up --force-recreate -``` +![Architecture](https://github.com/btcpayserver/btcpayserver-doc/raw/master/img/Architecture.png) -You can then browse http://127.0.0.1:23001/ +As you can see, it depends on several piece of infrastructure, mainly NBXplorer, Postgres, and Bitcoin Core. +Setting up the dependencies might be time consuming, this repository is meant to give working example of docker-compose file which will setup everything for you. -If you want to refresh the btcpay image up to the latest master, you need to rebuild the image. +This assume you already know how docker-compose works. -``` -docker build . -t btcpay --no-cache -docker-compose build -docker-compose up --force-recreate -``` +Used docker image used [BTCPayServer](https://hub.docker.com/r/nicolasdorier/btcpayserver/), [NBXplorer](https://hub.docker.com/r/nicolasdorier/nbxplorer/), [Bitcoin Core](https://hub.docker.com/r/nicolasdorier/docker-bitcoin/) and [Postgres](https://hub.docker.com/_/postgres/). -By default this will connect to a NBXplorer instance hosted by me, on which I can make no promise of avaialability. +The revelant volumes are: + +* /datadir in NBXplorer +* /datadir in BTCPayServer +* /data in Bitcoin +* /var/lib/postgresql/data in Postgres diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 048ff3e..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: "3" - -services: - btcpayserver: - ports: - - 23001:23001 - build: - context: . - dockerfile: DockerFile - - postgres: - image: postgres:9.6.5 - ports: - - 5432:5432 - \ No newline at end of file