docs/How_to_install_Dawarich_on_Synology.md
Firstly you need to install Container manager on your DSM.
Do the same for Web station packet.
If you don't yet have separate share for docker projects would be good to create it.
If you don't want to use dedicated share for projects installed by docker skip it and go to the next chapter.
I expected that you have configured the certificate in DSM. See Control panel -> Security -> Certificate. For example, previously you configured QuickConnect or DynDNS (DDNS). See Control panel -> External Access
On your local DNS server, you need to add new record with dawarich.my-syno.com and IP address of Synology (see Control panel -> Network -> Network Interface in your DSM) to provide correct access to Dawarich, or just use wildcard *.my-syno.com record to resolve all subdomains my-syno.com to Synology ip.
Please read the documentation of your DNS server to understand how to do it.
If you don't yet have a DNS server you can install Synology DNS.
Don't forget to reconfigure your DHCP server or all device settings in your local network to use this DNS server.
Open /Docker root folder/Dawarich root folder/.env file in any text editor. For example, you can use Text editor package or download it from File station, edit locally and upload it back, or get access by file share.
Update your APPLICATION_HOSTS value to include your Dawarich hostname that you set in Web station. In example above dawarich.my-syno.com. If you want to set multiple hosts, separate them by a comma: dawarich.my-syno.com,dawarich2.my-syno.com.
Set your current TIME_ZONE. The full list here.
Optionally change DATABASE_USERNAME, DATABASE_USERNAME, DATABASE_NAME.
Click on the name of your project.
Open YAML Configurations tab.
There are two possible options:
Synology allows you to create custom applications and install them by Package Center Here you can find a tool that creates dummy applications only with icon on the main menu. You can use this tool and create your own app, or use the prepared one in this repo. But you need to change url to Dawarich inside it.
update.sh from synology folder. And in the first lines set correct values for author and URL.update.sh. When the script finishes you will see the spk and Dawarich.spk in the same folder.If you don't have Linux console you can create a temporal docker project to generate spk package.
app and copy update.sh and spk.tgz into this subfolder.name: spk-template
services:
spk-template:
container_name: spk-template
image: alpine
restart: unless-stopped
working_dir: /app
volumes:
- ./app:/app
command:
- /app/update.sh
Click Next, Next, Done The container should run and finish automatically.
After that you can see spk and Dawarich.spk in the app folder.
Check url in spk/package/ui/config file and maintainer and distributor in spk/INFO file.
Open Package Center, click on Manual Install, select Dawarich.spk, agree with the security notice, and install it.