Browse Source

Remove current sample

migrate-pregen
NicolasDorier 8 years ago
parent
commit
8f2638e9b8
  1. 9
      DockerFile
  2. 27
      README.md
  3. 15
      docker-compose.yml

9
DockerFile

@ -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"]

27
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

15
docker-compose.yml

@ -1,15 +0,0 @@
version: "3"
services:
btcpayserver:
ports:
- 23001:23001
build:
context: .
dockerfile: DockerFile
postgres:
image: postgres:9.6.5
ports:
- 5432:5432
Loading…
Cancel
Save