Skip to content

Commit

Permalink
Defines volumes for alice/bob in docker/README
Browse files Browse the repository at this point in the history
  • Loading branch information
Osso committed Aug 17, 2018
1 parent ee99015 commit 7e4aa29
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/README.md
Expand Up @@ -64,7 +64,7 @@ bitcoin into.
$ export NETWORK="simnet"

# Run the "Alice" container and log into it:
$ docker-compose run -d --name alice lnd_btc
$ docker-compose run -d alice
$ docker exec -i -t alice bash

# Generate a new backward compatible nested p2sh address for Alice:
Expand All @@ -90,7 +90,7 @@ Connect `Bob` node to `Alice` node.

```bash
# Run "Bob" node and log into it:
$ docker-compose run -d --name bob lnd_btc
$ docker-compose run -d bob
$ docker exec -i -t bob bash

# Get the identity pubkey of "Bob" node:
Expand Down
19 changes: 19 additions & 0 deletions docker/docker-compose.yml
Expand Up @@ -93,6 +93,19 @@ services:
volumes:
- lnd_btc_data:/root/.lnd

alice:
extends: lnd
links:
- "btcd:blockchain"
volumes:
- alice_data:/root/.lnd
bob:
extends: lnd
links:
- "btcd:blockchain"
volumes:
- bob_data:/root/.lnd

volumes:
# shared volume is need to store the btcd rpc certificates and use it within
# btcctl and lnd containers.
Expand All @@ -115,3 +128,9 @@ volumes:
driver: local
lnd_btc_data:
driver: local

# alice and bob are need for running README examples
alice_data:
driver: local
bob_data:
driver: local

0 comments on commit 7e4aa29

Please sign in to comment.