Skip to content

Commit 4e2afdf

Browse files
docs(docker-readme): format and fix code blocks to prevent warnings (#5273)
1 parent 4ab44aa commit 4e2afdf

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

packaging/docker/README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,60 @@
22

33
The docker-compose provides an app container for Bee.
44
To prepare your machine to run docker compose execute
5-
```
5+
6+
```bash
67
mkdir -p bee && cd bee
78
wget -q https://raw.githubusercontent.com/ethersphere/bee/master/packaging/docker/docker-compose.yml
89
wget -q https://raw.githubusercontent.com/ethersphere/bee/master/packaging/docker/env -O .env
910
```
11+
1012
Set all configuration variables inside `.env`
1113

1214
If you want to run node in full mode, set `BEE_FULL_NODE=true`
1315

1416
Bee requires an Ethereum endpoint to function. Obtain a free Infura account and set:
17+
1518
- `BEE_BLOCKCHAIN_RPC_ENDPOINT=wss://sepolia.infura.io/ws/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
1619

1720
Set bee password by either setting `BEE_PASSWORD` or `BEE_PASSWORD_FILE`
1821

1922
If you want to use password file set it to
23+
2024
- `BEE_PASSWORD_FILE=/password`
2125

2226
Mount password file local file system by adding
23-
```
27+
28+
```yaml
2429
- ./password:/password
2530
```
31+
2632
to bee volumes inside `docker-compose.yml`
2733

2834
Start it with
29-
```
35+
36+
```bash
3037
docker-compose up -d
3138
```
3239

3340
From logs find URL line with `on sepolia you can get both sepolia eth and sepolia bzz from` and prefund your node
34-
```
41+
42+
```bash
3543
docker-compose logs -f bee-1
3644
```
3745

3846
Update services with
39-
```
47+
48+
```bash
4049
docker-compose pull && docker-compose up -d
4150
```
4251

4352
## Running multiple Bee nodes
53+
4454
It is easy to run multiple bee nodes with docker compose by adding more services to `docker-compose.yaml`
4555
To do so, open `docker-compose.yaml`, copy lines 4-54 and past this after line 54 (whole bee-1 section).
4656
In the copied lines, replace all occurrences of `bee-1` with `bee-2` and adjust the `API_ADDR` and `P2P_ADDR` to respectively `1733`, `1734.`
4757
Lastly, add your newly configured services under `volumes` (last lines), such that it looks like:
58+
4859
```yaml
4960
volumes:
5061
bee-1:

pkg/storageincentives/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ func (a *Agent) handleSample(ctx context.Context, round uint64) (bool, error) {
417417
}
418418

419419
if !a.state.IsHealthy() {
420-
a.logger.Info("skipping round because node is unhealhy", "round", round)
420+
a.logger.Info("skipping round because node is unhealthy", "round", round)
421421
return false, nil
422422
}
423423

0 commit comments

Comments
 (0)