-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1171 from bra1nDeaD/master
Added installation instructions for Synology DSM 7
- Loading branch information
Showing
9 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Teslalogger Docker Setup on Synology NAS - DSM 7 | ||
|
||
Installation instructions for Synology NAS on DSM 7.2-64570 Update 1 | ||
|
||
I've had a hard time to get this to work, which in the end had mostly todo with ACLs as this is mostly hidden in an SSH session. But in the end I got it to work. I hope this helps someone else who wants to install this on DSM 7+. I wish I could set it up a bit more secure, as I've given read/write permissions to everyone, but with mixed host/containerized UIDs/GIDs it's very hard to tie it down. So, massive disclaimer that this is not the most secure method, but it works. | ||
|
||
Open an SSH session to your Synology NAS and execute the following commands (assumes you already have Container Manager installed and use /volume1, please amend if different): | ||
|
||
``` | ||
sudo -i | ||
cd /volume1/docker | ||
git clone https://github.com/bassmaster187/TeslaLogger | ||
cd TeslaLogger/TeslaLogger | ||
mkdir GrafanaDashboards && mkdir GrafanaDB | ||
``` | ||
|
||
Because DSM uses ACLs, the file permissions are a bit more complicated than the standard Linux permissions. The easiest way to make the changes is by using File Station in the Synology Web Portal. | ||
- Open File Station | ||
- Browse to /volume1/docker/TeslaLogger | ||
- Inside this directory, right click on the second TeslaLogger directory and select Properties from the menu | ||
|
||
![image](./TeslaLogger/screenshots/DMS7-01-file-station-select-properties.png) | ||
|
||
- In the Properties popup, select the Permissions tab | ||
- Click on the Create button to open the Permissions Editor | ||
|
||
![image](./TeslaLogger/screenshots/DMS7-02-properties-create-button.png) | ||
|
||
- In the User or Group dropdown, select Everyone | ||
- In the Permission area, tick the Read and the Write tickbox (all sub items will be ticked) | ||
- Click the Done button | ||
|
||
![image](./TeslaLogger/screenshots/DMS7-03-permissions-editor.png) | ||
|
||
- Back on the Properties popup, click on the Save button | ||
|
||
Close File Station and open Container Manager | ||
|
||
- Select the Project side tab and click the Create button | ||
|
||
![image](./TeslaLogger/screenshots/DMS7-04-container-manager.png) | ||
|
||
On the Create Project wizard: | ||
- give your project a name, e.i: teslalogger | ||
- Select the path: /volume1/docker/TeslaLogger | ||
- It will detect this already has a docker-compose.yml file, so select to use the existing one and press ok | ||
|
||
![image](./TeslaLogger/screenshots/DMS7-05-use-existing-compose.png) | ||
|
||
- Optionally change the TZ= timezones (4 instances) | ||
- Press Next | ||
- Press Next again | ||
- Press Done | ||
|
||
The containers will boot up. You'll see that the database container will use a bit more resources for a while. It only does that at first boot and the other containers won't boot properly until this is finished. Give it a little time until the CPU for all containers are low. If you have any first time start-up issues, then go into the Action dropdown and select Restart. | ||
|
||
![image](./TeslaLogger/screenshots/DMS7-06-containers-boot.png) | ||
|
||
These are the URLs you can use, replace "host" with your own NASs hostname: | ||
|
||
- Admin: http://host:8888/admin/ | ||
- Grafana: http://ds:3000/ |