Add instructions for docker noobs

This commit is contained in:
nicolas.dorier 2018-03-20 14:10:32 +09:00
parent ebe08b217e
commit 15039ea8bc
2 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View File

@ -293,4 +293,5 @@ BTCPayServer/wwwroot/bundles/*
!BTCPayServer/wwwroot/bundles/.gitignore !BTCPayServer/wwwroot/bundles/.gitignore
Production/.env Production/.env
.env
.vscode/ .vscode/

View File

@ -34,6 +34,38 @@ You can use it easily:
bitcoin-cli.sh getblockcount bitcoin-cli.sh getblockcount
``` ```
# For docker noobs
If you are a docker noob here is how you would create a HTTPS ready server.
First step is to make sure you have a domain name pointing to your host, and that port `443` and `80` and externally accessible.
Let's assume it is `btcpay.example.com`.
Then, create a `.env` file in the directory.
Clone the repository:
```
git clone https://github.com/btcpayserver/btcpayserver-docker
cd btcpayserver-docker
```
Create an `.env` file with the parameters documented in [Production](Production) or [Production-NoReverseProxy](Production-NoReverseProxy).
```
NBITCOIN_NETWORK=mainnet
BTCPAY_HOST=btcpay.example.com
LETSENCRYPT_EMAIL=me@example.com
ACME_CA_URI=https://acme-v01.api.letsencrypt.org/directory
```
Save, then run it:
```
docker-compose -f "$(pwd)/Production/docker-compose.btc-ltc.yml" up -d
```
Wait a little bit, then you can now browse `https://btcpay.example.com/`.
# About generate-docker-compose # About generate-docker-compose
The files in `Production` and `Production-NoReverseProxy` are generated by a dotnet program located in `docker-compose-generator`. The files in `Production` and `Production-NoReverseProxy` are generated by a dotnet program located in `docker-compose-generator`.