Initial commit
This commit is contained in:
commit
c573b95984
36 changed files with 22555 additions and 0 deletions
9
docs/install/_category_.json
Normal file
9
docs/install/_category_.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"label": "⬇️ Install",
|
||||
"position": 2,
|
||||
"link": {
|
||||
"type": "generated-index",
|
||||
"description": "Here's how to install EcoDash on different platforms. Choose yours from the list below. Docker is the recommended one, as it's platform-independent.",
|
||||
"slug": "/install",
|
||||
}
|
||||
}
|
46
docs/install/docker.md
Normal file
46
docs/install/docker.md
Normal file
|
@ -0,0 +1,46 @@
|
|||
# 🐳 Docker
|
||||
|
||||
Docker is the recommended deployment method for EcoDash. It allows to run on different architectures and operating systems without hassle.
|
||||
|
||||
Pre-built Docker containers are offered for Linux on ARM and x86_64. If you're not on a supported architecture or operating system, please check the [Building the container](https://gitea.massivebox.net/ecodash/ecodash/src/branch/master/BUILD.md) guide.
|
||||
|
||||
## With Docker command-line
|
||||
|
||||
```
|
||||
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.
|
||||
|
||||
## With Docker Compose
|
||||
|
||||
Create a file `docker-compose.yml` with the following content:
|
||||
|
||||
```
|
||||
version: '3'
|
||||
services:
|
||||
ecodash:
|
||||
container_name: ecodash
|
||||
image: gitea.massivebox.net/massivebox/ecodash
|
||||
ports:
|
||||
- '8080:80'
|
||||
volumes:
|
||||
- ./config.json:/app/config.json
|
||||
- ./database.db:/app/database.db
|
||||
restart: always
|
||||
```
|
||||
|
||||
Run the container with
|
||||
|
||||
```
|
||||
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.
|
||||
|
||||
## Get notified about new releases
|
||||
|
||||
Since EcoDash doesn't have any way to notify admins of new releases, you're encouraged to add our repository's feed into your RSS reader: https://gitea.massivebox.net/ecodash/ecodash.rss
|
||||
|
||||
|
||||
|
59
docs/install/linux.md
Normal file
59
docs/install/linux.md
Normal file
|
@ -0,0 +1,59 @@
|
|||
# 🐧 Linux
|
||||
|
||||
Pre-built binaries are available for Linux systems with x86_64 and ARM architecture. They should work on any distribution, but haven't been tested on all. Please open an issue if problems arise.
|
||||
|
||||
If you're not on a supported architecture, please check the [Building on Linux](https://gitea.massivebox.net/ecodash/ecodash/src/branch/master/BUILD.md) guide.
|
||||
The [docker image](/docs/install/Docker) is recommended over running from binaries.
|
||||
|
||||
## Download
|
||||
|
||||
1. Grab the appropriate ZIP from the [latest release page](https://gitea.massivebox.net/ecodash/ecodash/releases/latest). Make sure to select the right file for your architecture:
|
||||
`wget LINK_TO_APPROPRIATE_FILE`
|
||||
2. Extract the contents. This will create a folder named `ecodash` in the current directory, which will contain the binary, the configuration, the database and HTML templates folder:
|
||||
`unzip FILE_NAME`
|
||||
3. To start the container, first enter the `ecodash` directory:
|
||||
`cd ecodash`
|
||||
Then run it. This will expose EcoDash on port 80 by default:
|
||||
`./ecodash`
|
||||
If you want to run on any other port, use an environment variable like this:
|
||||
`env PORT=8080 ./ecodash`
|
||||
|
||||
## Set up auto-restart
|
||||
|
||||
You might want your EcoDash server to restart automatically in the event of system reboots, programming bugs or configuration saves. This tutorial only covers distributions with systemd.
|
||||
|
||||
1. Create a file at `/etc/systemd/system/ecodash.service` with this content:
|
||||
```
|
||||
[Unit]
|
||||
Description=EcoDash
|
||||
After=network.target
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=USER
|
||||
ExecStart=EXTRACTION_PATH/ecodash/ecodash
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Make sure to replace USER with your username and EXTRACTION_PATH with the path where you performed the `wget` earlier.
|
||||
|
||||
2. Test if it works:
|
||||
`systemctl start ecodash`
|
||||
|
||||
3. If it does (you don't see any error) you can set the OS to automatically start it after reboots with this:
|
||||
`systemctl enable ecodash`
|
||||
|
||||
## Get notified about new releases
|
||||
|
||||
Since EcoDash doesn't have any way to notify admins of new releases, you're encouraged to add our repository's feed into your RSS reader: https://gitea.massivebox.net/ecodash/ecodash.rss
|
||||
|
||||
## Moving on
|
||||
|
||||
Now that EcoDash is installed, you can proceed to the Setup.
|
||||
|
||||
|
||||
|
3
docs/install/windows.md
Normal file
3
docs/install/windows.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# 🪟 Windows
|
||||
|
||||
Pre-built binaries or Docker images are not yet offered for Windows. You are encouraged to use WSL or [build yourself](https://gitea.massivebox.net/ecodash/ecodash/src/branch/master/BUILD.md) the Docker container for Windows. Support for this operating system and related documentation will come in future releases.
|
Loading…
Add table
Add a link
Reference in a new issue