From bf8579eeaa33add3af7cc460fb5d373964acd123 Mon Sep 17 00:00:00 2001 From: NicolasDorier Date: Wed, 27 Sep 2017 23:53:59 +0900 Subject: [PATCH] fix, was not using postgres --- DockerFile | 3 ++- README.md | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/DockerFile b/DockerFile index 548a3df..cd9efc7 100644 --- a/DockerFile +++ b/DockerFile @@ -5,4 +5,5 @@ RUN cd btcpayserver && dotnet restore && cd BTCPayServer && dotnet build -c Debu EXPOSE 23001 WORKDIR /btcpayserver/BTCPayServer ENTRYPOINT ["dotnet", "bin/Debug/netcoreapp2.0/BTCPayServer.dll"] -CMD ["--testnet", "--explorercookiefile=/.cookie", "--explorerurl=https://nbxplorer-testnet-public.azurewebsites.net/", "--bind=0.0.0.0", "--postgres=\"User ID=postgres;Host=postgres;Port=54320;Database=btcpayserver\""] \ No newline at end of file +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 6a06df1..3710222 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ If you want to refresh the btcpay image up to the latest master, you need to reb ``` docker build . -t btcpay --no-cache +docker-compose build +docker-compose up ``` By default this will connect to a NBXplorer instance hosted by me, on which I can make no promise of avaialability.