Browse Source

Viacoin support

migrate-pregen
nicolas.dorier 7 years ago
parent
commit
bc7acf4a38
  1. 33
      docker-compose-generator/docker-fragments/viacoin.yml
  2. 5
      docker-compose-generator/src/CryptoDefinition.cs
  3. 1
      viacoin-cli.ps1
  4. 3
      viacoin-cli.sh

33
docker-compose-generator/docker-fragments/viacoin.yml

@ -0,0 +1,33 @@
version: "3"
services:
viacoind:
restart: unless-stopped
container_name: btcpayserver_viacoind
image: romanornr/docker-viacoin:0.15.1
environment:
BITCOIN_EXTRA_ARGS: |
rpcport=43782
${NBITCOIN_NETWORK:-regtest}=1
port=39388
whitelist=0.0.0.0/0
expose:
- "43782"
- "39388"
volumes:
- "viacoin_datadir:/data"
nbxplorer:
environment:
NBXPLORER_CHAINS: "via"
NBXPLORER_VIARPCURL: http://viacoind:43782/
NBXPLORER_VIANODEENDPOINT: viacoind:39388
links:
- viacoind
volumes:
- "viacoin_datadir:/root/.viacoin"
btcpayserver:
environment:
BTCPAY_CHAINS: "via"
BTCPAY_VIAEXPLORERURL: http://nbxplorer:32838/
volumes:
viacoin_datadir:

5
docker-compose-generator/src/CryptoDefinition.cs

@ -59,6 +59,11 @@ namespace DockerGenerator
{ {
Crypto = "grs", Crypto = "grs",
CryptoFragment = "groestlcoin" CryptoFragment = "groestlcoin"
},
new CryptoDefinition()
{
Crypto = "via",
CryptoFragment = "viacoin"
} }
}; };
} }

1
viacoin-cli.ps1

@ -0,0 +1 @@
docker exec -ti btcpayserver_viacoind viacoin-cli -datadir="/data" $args

3
viacoin-cli.sh

@ -0,0 +1,3 @@
#!/bin/bash
docker exec -ti btcpayserver_viacoind viacoin-cli -datadir="/data" "$@"
Loading…
Cancel
Save