diff --git a/README.md b/README.md index 8cc3eb3..cc57121 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ sudo docker run hello-world curl -L https://app.drosera.io/install | bash ``` ``` -source /root/.bashrc +echo 'export PATH="$HOME/drosera/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc ``` ``` droseraup @@ -62,7 +62,7 @@ droseraup curl -L https://foundry.paradigm.xyz | bash ``` ``` -source /root/.bashrc +echo 'export PATH="$HOME/.foundry/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc ``` ``` foundryup @@ -205,14 +205,16 @@ tar -xvf drosera-operator-v1.17.2-x86_64-unknown-linux-gnu.tar.gz * Currently the Operator CLI version is `v1.17.2`. Verify the latest version [here](https://github.com/drosera-network/releases/releases) * You have to get the link of `drosera-operator-v1.x.x-x86_64-unknown-linux-gnu.tar.gz` +## Move path to run it globally +```bash +mv drosera-operator ~/drosera/bin/ +echo 'export PATH="$HOME/drosera/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc +``` Test the CLI with `./drosera-operator --version` to verify it's working. ```console # Check version ./drosera-operator --version -# Move path to run it globally -sudo cp drosera-operator /usr/bin - # Check if it is working drosera-operator ``` diff --git a/docker-compose.yaml b/docker-compose.yaml index b7629bb..7541caf 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,15 +1,38 @@ version: '3' + services: drosera: image: ghcr.io/drosera-network/drosera-operator:latest container_name: drosera-node + ports: - "31313:31313" - "31314:31314" + volumes: - drosera_data:/data - command: node --db-file-path /data/drosera.db --network-p2p-port 31313 --server-port 31314 --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com --eth-backup-rpc-url https://holesky.drpc.org --drosera-address 0xea08f7d533C2b9A62F40D5326214f39a8E3A32F8 --eth-private-key ${ETH_PRIVATE_KEY} --listen-address 0.0.0.0 --network-external-p2p-address ${VPS_IP} --disable-dnr-confirmation true + + command: > + node + --db-file-path /data/drosera.db + --network-p2p-port 31313 + --server-port 31314 + --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com + --eth-backup-rpc-url https://holesky.drpc.org + --drosera-address 0xea08f7d533C2b9A62F40D5326214f39a8E3A32F8 + --eth-private-key ${ETH_PRIVATE_KEY} + --listen-address 0.0.0.0 + --network-external-p2p-address ${VPS_IP} + --disable-dnr-confirmation true + restart: always + logging: + driver: "json-file" + options: + max-size: "100m" # Maximum size of a log file before rotation + max-file: "3" # Maximum number of log files to keep + volumes: drosera_data: +