This repo contains most of the deployment for Mutinynet. It originally is a fork of Plebnet but has grown to include a lot more.
The main deployment is done with docker-compose. It contains various services:
- bitcoind
- lnd
- rgs server
- faucet (frontend and backend)
- mempool.space instance
- electrs
- cashu mint
Most of these just pull the released docker images from dockerhub, but there are also some custom services:
bitcoind
this is a custom build of bitcoind with soft forks and 30s block time. It also contains the scripts to mine signet blocks.electrs
this is a small fork of electrs to add a dockerfile and some fixes for signet, however these fixes ended up not being needed IIRC.rapid-gossip-sync-server
this is a fork of rapid-gossip-sync-server to allow for a 10m snapshot interval. At the time there was no way to change the interval in the project, now there is but is has worked so far so I have not updated it.
To run the deployment, you need to have docker and docker-compose installed. Then you can run:
docker-compose up -d
This will start all the services. You can check the logs with:
docker-compose logs -f
You can also run the services individually:
docker-compose up -d bitcoind lnd rgs_server
You can create some aliases to make it easier to interact with bitcoind and lnd:
alias lncli="docker exec -it lnd /bin/lncli -n signet"
alias bitcoin-cli="docker exec -it bitcoind /usr/local/bin/bitcoin-cli"
To update the deployment, you can run:
git pull
docker-compose pull
And then restart the services:
docker-compose up -d