Firstly you need install Container manager on your DSM.
- Open Synology DSM web UI.
- In the main menu open Package Center.
- Search Container Manager in the "open source" section.
- Install that.
Do same for Web station packet.
If you don't yet have separated 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 next chapter.
- Open Control panel -> Shared folder -> Create -> Create shared folder
- Set name, for example docker, and location.
- Check Hide this shared folder in "My Network Places". This hide this folder from listening by smb, afp, ftp shares.
- Click Next several times until you see Configure user permissions window.
- Check Read/write access for your user and No Access for all another.
- Open your Docker root folder in File station.
- Create new folder dawarich and open it.
- Create folders redis, db_data, db_shared, gem_cache and gem_cache in dawarich folder.
- Copy docker compose and .env files form synology repo folder into dawarich folder on your synology.
- Open Container Manager -> Projects -> Create
- In create project window.
- Set project name as you wish.
- Set path to Dawarich root folder.
- DSM ask about existed docker compose file, choose use existing an docker-compose.yml to create the project.
- Click Next.
- Check Set up web portal via Web Station.
- Select container name, port and http protocol (not https).
- Click "Next".
- Uncheck Start the project once it is created.
- Click "Done".
- In popup "dawarich has been created. Go to Web Station to configure the web portal for the container." click "OK". Web station Portal Creation Wizard will be opened.
- Set portal type to Name-based.
- Set hostname as your wish. For example if your DSM have hostname my-syno.com, you can use dawarich.my-syno.com.
- Check HTTPS settings - HSTS
I expected that you have configured certificate in DSM . See Control panel -> Security -> Certificate. For example previously you configured QuickConnect or DynDNS (DDNS). See Control panel -> External Access
- Click Create.
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 documentation of your DNS server understand how to do it.
If you don't yet have 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.
-
Change
APPLICATION_HOST
value to your Dawarich hostname that you set in Web station. In example above dawarich.my-syno.com. -
Set your current
TIME_ZONE
. Full list here. -
Set
MAP_CENTER
. This is your default location. Open Google Maps, click to random point and copy coordinates from popup or address line. -
Optionally change
DATABASE_USERNAME
,DATABASE_USERNAME
,DATABASE_NAME
. -
Click on name of your project.
-
Open YAML Configurations tab.
- Open Container Manager -> Projects ->dawarich
- In top right corner click Action -> Build
- Wait until popup writes that all done and wait a few minutes more until all apps in containers starts.
- Open it by your hostname. In this example https://dawarich.my-syno.com
There two possible options:
- With Web station. But you will have default web station icon.
- With custom application for Package Center.
- Open Web station -> Web Portal -> dawarich (project).
- Check Create shortcut on main menu and set link name.
Synology allows you to create custom application and install them by Package Center Here you can find tool that creates dummy application only with icon on main menu. You can use this tool and create your own app, or use prepared one in this repo. But you need to change url to Dawarich inside it.
- Edit
update.sh
fromsynology
folder. And in the first lines set correct values forauthor
andURL
. - Run
update.sh
. When script finish you will see thespk
andDawarich.spk
in the same folder.
If you don't have linux console you can create temporal docker project to generate spk package.
- Create new folder in Docker root folder.
- Create subfolder
app
and copyupdate.sh
andspk.tgz
into this subfolder. - Open Container Manager -> Projects -> Create.
- Set any name, set newly created folder and set Create docker-compose.yml.
- Copy text below to text field.
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
-
Container should run and finish automatically.
-
After that you can see
spk
andDawarich.spk
in theapp
folder. -
Check
url
inspk/package/ui/config
file andmaintainer
anddistributor
inspk/INFO
file. -
Open Package Center, click to Manual Install,select
Dawarich.spk
, agree with security notice, and install it.