github.com/ethersphere/bee/v2@v2.2.0/packaging/docker/README.md (about)

     1  # Docker compose
     2  
     3  The docker-compose provides an app container for Bee.
     4  To prepare your machine to run docker compose execute
     5  ```
     6  mkdir -p bee && cd bee
     7  wget -q https://raw.githubusercontent.com/ethersphere/bee/master/packaging/docker/docker-compose.yml
     8  wget -q https://raw.githubusercontent.com/ethersphere/bee/master/packaging/docker/env -O .env
     9  ```
    10  Set all configuration variables inside `.env`
    11  
    12  If you want to run node in full mode, set `BEE_FULL_NODE=true`
    13  
    14  Bee requires an Ethereum endpoint to function. Obtain a free Infura account and set:
    15  - `BEE_BLOCKCHAIN_RPC_ENDPOINT=wss://sepolia.infura.io/ws/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
    16  
    17  Set bee password by either setting `BEE_PASSWORD` or `BEE_PASSWORD_FILE`
    18  
    19  If you want to use password file set it to
    20  - `BEE_PASSWORD_FILE=/password`
    21  
    22  Mount password file local file system by adding
    23  ```
    24  - ./password:/password
    25  ```
    26  to bee volumes inside `docker-compose.yml`
    27  
    28  Start it with
    29  ```
    30  docker-compose up -d
    31  ```
    32  
    33  From logs find URL line with `on sepolia you can get both sepolia eth and sepolia bzz from` and prefund your node
    34  ```
    35  docker-compose logs -f bee-1
    36  ```
    37  
    38  Update services with
    39  ```
    40  docker-compose pull && docker-compose up -d
    41  ```
    42  
    43  ## Running multiple Bee nodes
    44  It is easy to run multiple bee nodes with docker compose by adding more services to `docker-compose.yaml`
    45  To do so, open `docker-compose.yaml`, copy lines 4-54 and past this after line 54 (whole bee-1 section).
    46  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.`
    47  Lastly, add your newly configured services under `volumes` (last lines), such that it looks like:
    48  ```yaml
    49  volumes:
    50    bee-1:
    51    bee-2:
    52  ```
    53  
    54  If you want to create more than two nodes, simply repeat the process above, ensuring that you keep unique name for your bee services and update the ports