docker: enable docker-compose up command for btc and ltc compose files
This commit is contained in:
1 parent
883f9e5f9a
commit
1f457ac1a8
5 files changed
+81
-88
No files matched your search
+17
-76
@@ -1,11 +1,11 @@
|
||||
version: '2'
|
||||
services:
|
||||
|
||||
# btc is an image of bitcoin node which used as base image for btcd and
|
||||
# btccli. The environment variables default values determined on stage of
|
||||
# container start within starting script.
|
||||
btc:
|
||||
btcd:
|
||||
image: btcd
|
||||
container_name: btcd
|
||||
build:
|
||||
context: btcd/
|
||||
volumes:
|
||||
@@ -15,82 +15,28 @@ services:
|
||||
- RPCUSER
|
||||
- RPCPASS
|
||||
- NETWORK
|
||||
- DEBUG
|
||||
- MINING_ADDRESS
|
||||
entrypoint: ["./start-btcd.sh"]
|
||||
|
||||
btcd:
|
||||
extends: btc
|
||||
container_name: btcd
|
||||
environment:
|
||||
- DEBUG
|
||||
- MINING_ADDRESS
|
||||
- NETWORK
|
||||
entrypoint: ["./start-btcd.sh"]
|
||||
|
||||
btcctl:
|
||||
extends: btc
|
||||
container_name: btcctl
|
||||
links:
|
||||
- "btcd:rpcserver"
|
||||
entrypoint: ["./start-btcctl.sh"]
|
||||
|
||||
|
||||
# ltc is an image of litecoin node which used as base image for ltcd and
|
||||
# ltcctl. The environment variables default values determined on stage of
|
||||
# container start within starting script.
|
||||
ltc:
|
||||
image: ltcd
|
||||
lnd:
|
||||
image: lnd
|
||||
container_name: lnd
|
||||
build:
|
||||
context: ltcd/
|
||||
volumes:
|
||||
- shared:/rpc
|
||||
- litecoin:/data
|
||||
context: ../
|
||||
dockerfile: docker/lnd/Dockerfile
|
||||
environment:
|
||||
- RPCUSER
|
||||
- RPCPASS
|
||||
- NETWORK
|
||||
|
||||
ltcd:
|
||||
extends: ltc
|
||||
container_name: ltcd
|
||||
environment:
|
||||
- DEBUG
|
||||
- MINING_ADDRESS
|
||||
- NETWORK
|
||||
entrypoint: ["./start-ltcd.sh"]
|
||||
|
||||
ltcctl:
|
||||
extends: ltc
|
||||
container_name: ltcctl
|
||||
links:
|
||||
- "ltcd:rpcserver"
|
||||
entrypoint: ["./start-ltcctl.sh"]
|
||||
|
||||
lnd:
|
||||
image: lnd
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: docker/lnd/Dockerfile
|
||||
environment:
|
||||
- RPCUSER
|
||||
- RPCPASS
|
||||
- NETWORK
|
||||
- CHAIN
|
||||
- DEBUG
|
||||
volumes:
|
||||
- shared:/rpc
|
||||
- lnd:/root/.lnd
|
||||
entrypoint: ["./start-lnd.sh"]
|
||||
|
||||
lnd_ltc:
|
||||
extends: lnd
|
||||
container_name: lnd_ltc
|
||||
- CHAIN
|
||||
- DEBUG
|
||||
volumes:
|
||||
- shared:/rpc
|
||||
- lnd:/root/.lnd
|
||||
entrypoint: ["./start-lnd.sh"]
|
||||
links:
|
||||
- "ltcd:blockchain"
|
||||
|
||||
lnd_btc:
|
||||
extends: lnd
|
||||
container_name: lnd_btc
|
||||
links:
|
||||
- "btcd:blockchain"
|
||||
- "btcd:blockchain"
|
||||
|
||||
volumes:
|
||||
# shared volume is need to store the btcd rpc certificates and use it within
|
||||
@@ -107,8 +53,3 @@ volumes:
|
||||
# during container lifecycle.
|
||||
lnd:
|
||||
driver: local
|
||||
|
||||
# litecoin volume is needed for maintaining blockchain persistence
|
||||
# during ltcd container recreation.
|
||||
litecoin:
|
||||
driver: local
|
||||
Reference in new issue
Block a user