bee go bzz

This commit is contained in:
Mohamed Sohail 2022-01-06 12:33:56 +03:00
commit 67617749c3
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
2 changed files with 45 additions and 0 deletions

7
backup_restore.sh Normal file
View File

@ -0,0 +1,7 @@
# backup bee and clef
docker run --rm -v bee_temp-bee-data:/volume -v $(pwd)/swarm-backups:/backup alpine tar -cjf /backup/bee-data-backup.tar.bz2 -C /volume ./
docker run --rm -v bee_temp-clef-data:/volume -v $(pwd)/swarm-backups:/backup alpine tar -cjf /backup/clef-data-backup.tar.bz2 -C /volume ./
#restore
docker run --rm -v bee_temp-bee-data:/volume -v $(pwd)/swarm-backups:/backup alpine sh -c "rm -rf /volume/* /volume/..?* /volume/.[!.]* ; tar -C /volume/ -xjf /backup/bee-data-backup.tar.bz2"
docker run --rm -v bee_temp-clef-data:/volume -v $(pwd)/swarm-backups:/backup alpine sh -c "rm -rf /volume/* /volume/..?* /volume/.[!.]* ; tar -C /volume/ -xjf /backup/clef-data-backup.tar.bz2"

38
docker-compose.yml Normal file
View File

@ -0,0 +1,38 @@
version: "3"
services:
clef:
image: ethersphere/clef:0.6.0
restart: unless-stopped
environment:
- CLEF_CHAINID=100
volumes:
- temp-clef-data:/app/data
command: full
bee:
image: ethersphere/bee:stable
restart: unless-stopped
environment:
- BEE_BOOTNODE=/dnsaddr/mainnet.ethswarm.org
- BEE_CLEF_SIGNER_ENABLE=true
- BEE_CLEF_SIGNER_ENDPOINT=http://clef:8550
- BEE_DB_OPEN_FILES_LIMIT=5000
- BEE_DEBUG_API_ENABLE=true
- BEE_FULL_NODE=true
- BEE_PASSWORD=
- BEE_SWAP_ENDPOINT=
- BEE_MAINNET=true
- BEE_VERBOSITY=info
ports:
- "${API_ADDR:-1633}${BEE_API_ADDR:-:1633}"
- "${P2P_ADDR:-1634}${BEE_P2P_ADDR:-:1634}"
- "${DEBUG_API_ADDR:-1635}${BEE_DEBUG_API_ADDR:-:1635}"
volumes:
- temp-bee-data:/home/bee/.bee
command: start
depends_on:
- clef
volumes:
temp-clef-data:
temp-bee-data: