Skip to content

Commit

Permalink
Merge pull request #1171 from bra1nDeaD/master
Browse files Browse the repository at this point in the history
Added installation instructions for Synology DSM 7
  • Loading branch information
bassmaster187 authored Feb 2, 2024
2 parents ceb0640 + 30e35df commit e148b32
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 2 deletions.
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.
2 changes: 1 addition & 1 deletion docker_setup.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Docker Setup
For Synology NAS users, check the hints here: [LINK](docker_setup_synology.md)
For Synology NAS users, check the hints here: [LINK DSM 6](docker_setup_synology.md) / [LINK DSM 7](docker_setup_synology_7.md)

Docker on Raspberry: It won't work if you don't have a 64bit OS as MariaDB requires a 64bit OS!

Expand Down
2 changes: 1 addition & 1 deletion docker_setup_synology.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Teslalogger Docker Setup on Synology NAS
# Teslalogger Docker Setup on Synology NAS - DSM 6

![Image](https://raw.githubusercontent.com/bassmaster187/TeslaLogger/master/TeslaLogger/screenshots/docker-synology.PNG)

Expand Down
62 changes: 62 additions & 0 deletions docker_setup_synology_7.md
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/

0 comments on commit e148b32

Please sign in to comment.