Skip to content

This docker image build a complete BTCZ environement based on bitcore node (Insight explorer and API with BWS and rates API)

Notifications You must be signed in to change notification settings

bitcoinz-dev-tools/btcz-docker-full-env

Repository files navigation

btcz-docker-full-env

This docker image builds a complete BTCZ environment based on bitcore full node, Insight Explorer. Paper Wallet, Web Wallet, BTCZ Vault Info. API with BWS and rates API for the BitcoinZ Copay Wallet, multi-platform included Android on Google Play.

That means you can run a full node wallet and connect from any device to your node using BitcoinZ Copay Wallet without middlemen. You can connect to your own network via VPN or port forwarding to BWS API. After running the BitcoinZ full container you need only change BMS settings in the wallet with your IP address. By running this dock container (full node wallet) you helping with the decentralization.

sudo docker pull simbav/bitcoinz-full

sudo docker run -it -d --network="host" --name="bitcoinz-full" --restart=always simbav/bitcoinz-full

These are the exposed Web services.

################################

################################

Big Thanks to the Marcelus 👑

Setup from the source code

The docker image build can take several hours.

git clone https://github.com/simbav911/btcz-docker-full-env.git
cd btcz-docker-full-env
sudo docker build . -t btcz/full-env --network host
sudo docker create --network host --name btcz-full-env -it btcz/full-env
sudo docker start btcz-full-env
sudo docker exec -it btcz-full-env bash -c "btcz-start"
sudo docker exec -it btcz-full-env bash -c "pm2 status"
sudo docker exec -it btcz-full-env bash -c "bitcoinz-cli getinfo"

URL's

This are the exposed Web services.

 - Insight explorer          http://127.0.0.1:3001/status
 - BTCZ Vault Info           http://127.0.0.1:2255
 - Rate API                  http://127.0.0.1:3333/rates
 - BWS API                   http://127.0.0.1:3232/bws/api
 - Paper Wallet              http://127.0.0.1:2265
 - Web Wallet                http://127.0.0.1:2275

Web server Virtualhost config

Archlinux httpd server, virtual host config file (with proxy module).

<VirtualHost *:80>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/btcz_explorer"
    ServerName explorer.btcz.app
    ServerAlias explorer.btcz.rocks
    ErrorLog "/var/log/httpd/explorer.btcz.app-error_log"
    CustomLog "/var/log/httpd/explorer.btcz.app-access_log" common

    ProxyPass        / http://localhost:3001/
    ProxyPassReverse / http://localhost:3001/
    
    <Directory "/etc/httpd/docs/btcz_explorer">
        Require all granted
    </Directory>

</VirtualHost>
<VirtualHost *:443>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/btcz_explorer"
    ServerName explorer.btcz.app
    ServerAlias explorer.btcz.rocks
    ErrorLog "/var/log/httpd/explorer.btcz.app-error_log"
    CustomLog "/var/log/httpd/explorer.btcz.app-access_log" common

    ProxyPass        / http://localhost:3001/
    ProxyPassReverse / http://localhost:3001/

    <Directory "/etc/httpd/docs/btcz_explorer">
        Require all granted
    </Directory>

</VirtualHost>


<VirtualHost *:80>
    ServerAdmin marcelus.btcz@gmail.com         
    DocumentRoot "/etc/httpd/docs/btcz_wallet"
    ServerName wallet.btcz.app 
    ServerAlias wallet.btcz.rocks       
    ErrorLog "/var/log/httpd/explorer.btcz.app-error_log"
    CustomLog "/var/log/httpd/explorer.btcz.app-access_log" common

    ProxyPass        / http://localhost:2275/
    ProxyPassReverse / http://localhost:2275/

    <Directory "/etc/httpd/docs/btcz_wallet">
        Require all granted
    </Directory>

</VirtualHost>
<VirtualHost *:443>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/btcz_wallet"
    ServerName wallet.btcz.app
    ServerAlias wallet.btcz.rocks
    ErrorLog "/var/log/httpd/explorer.btcz.app-error_log"
    CustomLog "/var/log/httpd/explorer.btcz.app-access_log" common

    ProxyPass        / http://localhost:2275/
    ProxyPassReverse / http://localhost:2275/

    <Directory "/etc/httpd/docs/btcz_wallet">
        Require all granted
    </Directory>

</VirtualHost>


<VirtualHost *:80>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/bws"
    ServerName bws.btcz.app
    ServerAlias bws.btcz.rocks
    ErrorLog "/var/log/httpd/bws.btcz.app-error_log"
    CustomLog "/var/log/httpd/bws.btcz.app-access_log" common

    ProxyPass        / http://localhost:3232/
    ProxyPassReverse / http://localhost:3232/

    <Directory "/etc/httpd/docs/bws">
        Require all granted
    </Directory>

</VirtualHost>
<VirtualHost *:443>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/bws"
    ServerName bws.btcz.app
    ServerAlias bws.btcz.rocks
    ErrorLog "/var/log/httpd/bws.btcz.app-error_log"
    CustomLog "/var/log/httpd/bws.btcz.app-access_log" common

    ProxyPass        / http://localhost:3232/
    ProxyPassReverse / http://localhost:3232/

    <Directory "/etc/httpd/docs/bws">
        Require all granted
    </Directory>

</VirtualHost>


<VirtualHost *:80>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/masq"
    ServerName masq.btcz.app
    ServerAlias masq.btcz.rocks
    ErrorLog "/var/log/httpd/masq.btcz.app-error_log"
    CustomLog "/var/log/httpd/masq.btcz.app-access_log" common

    ProxyPass        / http://localhost:3333/
    ProxyPassReverse / http://localhost:3333/

    <Directory "/etc/httpd/docs/masq">
        Require all granted
    </Directory>

</VirtualHost>
<VirtualHost *:443>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/masq"
    ServerName masq.btcz.app
    ServerAlias masq.btcz.rocks
    ErrorLog "/var/log/httpd/masq.btcz.app-error_log"
    CustomLog "/var/log/httpd/masq.btcz.app-access_log" common

    ProxyPass        / http://localhost:3333/
    ProxyPassReverse / http://localhost:3333/

    <Directory "/etc/httpd/docs/masq">
        Require all granted
    </Directory>

</VirtualHost>


<VirtualHost *:80>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/vaultz"
    ServerName vaultz.btcz.app
    ServerAlias vaultz.btcz.rocks
    ErrorLog "/var/log/httpd/vaultz.btcz.app-error_log"
    CustomLog "/var/log/httpd/vaultz.btcz.app-access_log" common

    ProxyPass        / http://localhost:2255/
    ProxyPassReverse / http://localhost:2255/

    <Directory "/etc/httpd/docs/vaultz">
        Require all granted
    </Directory>

</VirtualHost>
<VirtualHost *:443>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/vaultz"
    ServerName vaultz.btcz.app
    ServerAlias vaultz.btcz.rocks
    ErrorLog "/var/log/httpd/vaultz.btcz.app-error_log"
    CustomLog "/var/log/httpd/vaultz.btcz.app-access_log" common

    ProxyPass        / http://localhost:2255/
    ProxyPassReverse / http://localhost:2255/

    <Directory "/etc/httpd/docs/vaultz">
        Require all granted
    </Directory>

</VirtualHost>


<VirtualHost *:80>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/btcz_paper"
    ServerName paper.btcz.app
    ServerAlias paper.btcz.rocks
    ErrorLog "/var/log/httpd/explorer.btcz.app-error_log"
    CustomLog "/var/log/httpd/explorer.btcz.app-access_log" common

    ProxyPass        / http://localhost:2265/
    ProxyPassReverse / http://localhost:2265/

    <Directory "/etc/httpd/docs/btcz_paper">
        Require all granted
    </Directory>

</VirtualHost>
<VirtualHost *:443>
    ServerAdmin marcelus.btcz@gmail.com
    DocumentRoot "/etc/httpd/docs/btcz_paper"
    ServerName paper.btcz.app
    ServerAlias paper.btcz.rocks
    ErrorLog "/var/log/httpd/explorer.btcz.app-error_log"
    CustomLog "/var/log/httpd/explorer.btcz.app-access_log" common

    ProxyPass        / http://localhost:2265/
    ProxyPassReverse / http://localhost:2265/

    <Directory "/etc/httpd/docs/btcz_paper">
        Require all granted
    </Directory>

</VirtualHost>

About

This docker image build a complete BTCZ environement based on bitcore node (Insight explorer and API with BWS and rates API)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •