mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
Use docker compose overrides for testnet mainnet (#482)
* Use default override file for docker-compose testnet * Add mainnet docker-compose override file * Put common environment variables in main docker-compose file * Update readme with instructions for mainnet override
This commit is contained in:
parent
a43576a10e
commit
64643b25a8
4 changed files with 56 additions and 27 deletions
|
|
@ -16,9 +16,9 @@ Node for Squeak protocol
|
|||
$ docker-compose build
|
||||
$ docker-compose up
|
||||
```
|
||||
- If you want to use mainnet, run with the `NETWORK` environment variable:
|
||||
- If you want to use mainnet, run with the `docker-compose.mainnet.yml` override file:
|
||||
```
|
||||
$ NETWORK=mainnet docker-compose up
|
||||
$ docker-compose -f docker-compose.yml -f docker-compose.mainnet.yml up
|
||||
```
|
||||
- Go to http://localhost:12994/ and use the username/password in **docker/config.ini** to log in.
|
||||
|
||||
|
|
|
|||
27
docker/docker-compose.mainnet.yml
Normal file
27
docker/docker-compose.mainnet.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
version: '3'
|
||||
services:
|
||||
|
||||
bitcoin-core:
|
||||
command:
|
||||
-printtoconsole
|
||||
-testnet=0
|
||||
-server=1
|
||||
-rpcbind=0.0.0.0
|
||||
-rpcallowip=0.0.0.0/0
|
||||
-rpcuser=devuser
|
||||
-rpcpassword=devpass
|
||||
-zmqpubrawblock=tcp://0.0.0.0:28332
|
||||
-zmqpubrawtx=tcp://0.0.0.0:28333
|
||||
|
||||
lnd:
|
||||
environment:
|
||||
- NETWORK=mainnet
|
||||
|
||||
squeaknode:
|
||||
environment:
|
||||
- NETWORK=mainnet
|
||||
|
||||
volumes:
|
||||
# shared volume is needed for sharing the btcd certificate
|
||||
shared:
|
||||
driver: local
|
||||
27
docker/docker-compose.override.yml
Normal file
27
docker/docker-compose.override.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
version: '3'
|
||||
services:
|
||||
|
||||
bitcoin-core:
|
||||
command:
|
||||
-printtoconsole
|
||||
-testnet=1
|
||||
-server=1
|
||||
-rpcbind=0.0.0.0
|
||||
-rpcallowip=0.0.0.0/0
|
||||
-rpcuser=devuser
|
||||
-rpcpassword=devpass
|
||||
-zmqpubrawblock=tcp://0.0.0.0:28332
|
||||
-zmqpubrawtx=tcp://0.0.0.0:28333
|
||||
|
||||
lnd:
|
||||
environment:
|
||||
- NETWORK=testnet
|
||||
|
||||
squeaknode:
|
||||
environment:
|
||||
- NETWORK=testnet
|
||||
|
||||
volumes:
|
||||
# shared volume is needed for sharing the btcd certificate
|
||||
shared:
|
||||
driver: local
|
||||
|
|
@ -1,34 +1,11 @@
|
|||
version: '3'
|
||||
services:
|
||||
|
||||
# btcd:
|
||||
# image: btcd
|
||||
# container_name: btcd
|
||||
# build:
|
||||
# context: ../
|
||||
# dockerfile: docker/btcd/Dockerfile
|
||||
# volumes:
|
||||
# - shared:/rpc
|
||||
# - ~/.btcd/data:/data
|
||||
# environment:
|
||||
# - NETWORK
|
||||
# entrypoint: ["./start-btcd.sh"]
|
||||
|
||||
bitcoin-core:
|
||||
image: ruimarinho/bitcoin-core
|
||||
container_name: bitcoin-core
|
||||
volumes:
|
||||
- ~/.bitcoin:/home/bitcoin/.bitcoin
|
||||
command:
|
||||
-printtoconsole
|
||||
-testnet=1
|
||||
-server=1
|
||||
-rpcbind=0.0.0.0
|
||||
-rpcallowip=0.0.0.0/0
|
||||
-rpcuser=devuser
|
||||
-rpcpassword=devpass
|
||||
-zmqpubrawblock=tcp://0.0.0.0:28332
|
||||
-zmqpubrawtx=tcp://0.0.0.0:28333
|
||||
|
||||
lnd:
|
||||
image: lnd
|
||||
|
|
@ -37,7 +14,6 @@ services:
|
|||
context: ../
|
||||
dockerfile: docker/lnd/Dockerfile
|
||||
environment:
|
||||
- NETWORK
|
||||
- RPCHOST=bitcoin-core
|
||||
- BACKEND=bitcoind
|
||||
volumes:
|
||||
|
|
@ -61,7 +37,6 @@ services:
|
|||
- WEBADMIN_USE_SSL
|
||||
- WEBADMIN_LOGIN_DISABLED
|
||||
- WEBADMIN_ALLOW_CORS
|
||||
- NETWORK
|
||||
- LOG_LEVEL
|
||||
- SQUEAKNODE_SYNC_INTERVAL_S
|
||||
volumes:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue