compose: standardize volume names

- $SERVICE_data name for volumes
- update readme
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh 2023-10-31 21:26:24 +05:30
parent b02b64ece1
commit cd2a0f653f
No known key found for this signature in database
GPG Key ID: D3239BA6109A2CE7
2 changed files with 7 additions and 7 deletions

View File

@ -35,7 +35,7 @@ sudo systemctl enable --now docker
```
docker volume create bitcoin_data
docker volume create lightning_data
docker volume create txood_data
docker volume create txoo_data
```
## Docker Compose Run

View File

@ -7,7 +7,7 @@ services:
image: bitcoind
container_name: bitcoind-test
volumes:
- data:/home/bitcoin/.bitcoin
- bitcoin_data:/home/bitcoin/.bitcoin
expose:
- 18332
networks:
@ -27,7 +27,7 @@ services:
- --conf=/home/lightning/.lightning/testnet-config
- --bitcoin-rpcconnect=bitcoind
volumes:
- clightning:/home/lightning/.lightning
- lightning_data:/home/lightning/.lightning
expose:
- 19735
- 7701
@ -57,7 +57,7 @@ services:
- LN_testing
volumes:
- txoo_data:/root/.txoo/
- data:/root/.bitcoin/
- bitcoin_data:/root/.bitcoin/
depends_on:
bitcoin-core:
condition: service_healthy
@ -66,14 +66,14 @@ services:
volumes:
data:
bitcoin_data:
name: bitcoin_data
external: true
clightning:
lightning_data:
name: lightning_data
external: true
txoo_data:
name: txood_data
name: txoo_data
external: true
networks: