Added arm builds, improve database
- The program will now be cross-compiled and released for arm as well as x86 - What we previously called "cache" is not actually a cache, as it holds content that can't be always retrieved. Now we're stopping calling it a cache. - Improved history merging - Fixed the README to include the database as a volume, and to fix some errors
This commit is contained in:
parent
52ba0ea4c1
commit
7a1214d492
6 changed files with 52 additions and 34 deletions
18
README.md
18
README.md
|
@ -1,4 +1,5 @@
|
|||
# 🌿 EcoDash
|
||||
|
||||
[](https://woodpecker.massivebox.net/massivebox/ecodash)
|
||||
|
||||
EcoDash is a simple way to show your users how much your server consumes.
|
||||
|
@ -15,14 +16,17 @@ You can see it in action here: https://ecodash.massivebox.net
|
|||
## Installation
|
||||
|
||||
#### Using Docker run:
|
||||
|
||||
```
|
||||
touch config.json
|
||||
docker run -v ./config.json:/app/config.json --name ecodash -p 8080:80 gitea.massivebox.net/massivebox/ecodash
|
||||
docker run -v /absolute_path_to/config.json:/app/config.json -v /absolute_path_to/database.db:/app/database.db --name ecodash -p 8080:80 gitea.massivebox.net/massivebox/ecodash
|
||||
```
|
||||
|
||||
This will open the container on port 8080. Replace "8080" in the command with whatever number you want to open that specific port.
|
||||
|
||||
#### Using Docker Compose:
|
||||
|
||||
Create a file `docker-compose.yml` with the following content:
|
||||
|
||||
```
|
||||
version: '3'
|
||||
services:
|
||||
|
@ -33,17 +37,20 @@ services:
|
|||
- '8080:80'
|
||||
volumes:
|
||||
- ./config.json:/app/config.json
|
||||
- ./database.db:/app/database.db
|
||||
restart: always
|
||||
```
|
||||
|
||||
Run the container with
|
||||
|
||||
```
|
||||
Run the container with
|
||||
```
|
||||
touch config.json
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
This will open the container on port 8080. Replace "8080" in the file with whatever number you want to open that specific port.
|
||||
|
||||
#### Using the binary
|
||||
|
||||
Grab a binary from the Releases page and run it. You can use the `PORT` environment variable to override the default port (80).
|
||||
|
||||
## Set up
|
||||
|
@ -62,6 +69,7 @@ If you've just added your energy meter into HomeAssistant, note that it will tak
|
|||
## Support
|
||||
|
||||
If something isn't working, you can find some help here:
|
||||
|
||||
- [Matrix support room](https://matrix.to/#/#support:massivebox.net)
|
||||
- [Issues page](./issues)
|
||||
- [Contact me](https://massivebox.net/contact.html)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue