Update README.md

This commit is contained in:
DJObleezy 2025-03-23 18:32:22 -07:00 committed by GitHub
parent 32b06cfb66
commit 2aabea10c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,10 +56,39 @@ The dashboard aggregates essential metrics in one accessible interface:
For those preferring containerized deployment: For those preferring containerized deployment:
### Option 1: Simple Docker Run
```bash ```bash
docker run -d -p 5000:5000 -e WALLET=your-wallet-address -e POWER_COST=0.12 -e POWER_USAGE=3450 yourusername/ocean-mining-dashboard docker run -d -p 5000:5000 -e WALLET=your-wallet-address -e POWER_COST=0.12 -e POWER_USAGE=3450 yourusername/ocean-mining-dashboard
``` ```
### Option 2: Build and Run Manually
1. Clone the repository:
```bash
git clone https://github.com/yourusername/ocean-mining-dashboard.git
cd ocean-mining-dashboard
```
2. Build the Docker image:
```bash
docker build -t mining-dashboard .
```
3. Run the container:
```bash
docker run -d -p 5000:5000 --name mining-dashboard mining-dashboard
```
4. Optional: Run with Redis for data persistence:
```bash
# First start a Redis container
docker run -d --name redis redis
# Then start the dashboard with Redis connection
docker run -d -p 5000:5000 --link redis --env REDIS_URL=redis://redis:6379 mining-dashboard
```
Then navigate to `http://localhost:5000` in your web browser. Then navigate to `http://localhost:5000` in your web browser.
## Dashboard Components ## Dashboard Components