bee go bzz
This commit is contained in:
commit
67617749c3
7
backup_restore.sh
Normal file
7
backup_restore.sh
Normal 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
38
docker-compose.yml
Normal 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:
|
Loading…
Reference in New Issue
Block a user