From 1669d74967a2c8b3a391619c884df2ff0c07272d Mon Sep 17 00:00:00 2001 From: NicolasDorier Date: Wed, 27 Sep 2017 22:14:33 +0900 Subject: [PATCH] Use postgres --- README.md | 12 +++++++++--- docker-compose.yml | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 8f79d11..8ac107a 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,21 @@ # How to use Mainnet is not support for now, as BTCPay is under development. -Running on TestNet: +Running on TestNet with postgres database: ``` git clone https://github.com/btcpayserver/btcpayserver-docker cd btcpayserver-docker -docker build . -t btcpay -docker run -p 23001:23001 -ti btcpay +docker-compose up ``` You can then browse http://127.0.0.1:23001/ + +If you want to refresh the btcpay image up to the latest master, you need to rebuild the image. + +``` +docker build . -t btcpay --no-cache +``` + By default this will connect to a NBXplorer instance hosted by me, on which I can make no promise of avaialability. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..048ff3e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +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