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