Special Instructions for Installing with Docker on Synology NAS (Intel/AMD)
Make sure the Docker package is installed on your compatible (x86_64/amd64 architecture) Synology NAS. You can install the package from the Package Center application.
-
Make a subdirectory tree to contain Reactor's data and configuration files. This can be anywhere on your NAS to which you have access, such as your user home directory. You can use other directories, even on other volumes, if you choose. If uncertain right now, just create a
reactorsubdirectory in your home directory, and then create two additional directories underneath that:datafor your configuration, rules and states; andreactor-extfor any extensions you need to install (now or future).Home Directory | +---- reactor/ | +---- data/ | +---- reactor-ext/ -
Open Docker by clicking the Open button under the Docker item in the Package Center of your NAS;
-
In the Docker app, go to the Registry, and search for
toggledbits. The listing fortoggledbits/reactor:latest-amd64should come up. Click the row, and then click the Download button; -
Click the Image tab in the left navigation area of the Docker window, and you'll see the downloaded image. Click that row;
-
Click the Launch button to open the container creation dialog;
-
Adjust the
Container Nameif you wish. TheHigh PrivilegeandResource Limitationcheckboxes should be left off. Leave all other settings at their defaults for now; -
Click the Advanced Settings button. On the Advanced Settings dialog that comes up are several tabs... we'll work through these one at a time...
-
On the Advanced Settings tab, turn on the Enable auto-restart checkbox. Then click the Volume tab header;
-
On the Volume tab, click Add Folder. Then, under
File/Folder, navigate to and select thedatasubdirectory you created earlier to contain your Reactor data. UnderMount Path, enter/var/reactor. Do not check the read only checkbox. Then... -
One more time, on the Volume tab, click Add Folder. Then, under
File/Folder, navigate to and select thereactor-extsubdirectory you created earlier. UnderMount Path, enter/opt/reactor/ext. Do not check the read only checkbox. When ready, click the Network tab header; -
The Network Name listed should be
bridge; add it if it's not there. Then click the Port Settings tab header; -
On the Port Settings tab, the
Container Portshould show8111. TheLocal Portmust also show8111; if it does not (e.g. it showsAutoor something else), click on theLocal Portand change it to8111. If you are going to use SSL/TLS for access to the Reactor UI and/or API, also add port 8554 (or whatever port you plan to configure). Click on the Environment tab header; -
On the Environment tab, add a variable called
TZand enter the canonical name of your local timezone, which is of the formarea_name/locale_name(e.g.America/New_YorkorEurope/Prague. If you don't know it, you can browse this list. Also make sure thePORTenvironment variable agrees with the port assigned on the Network tab (8111 is the default); -
Click Apply to save your settings. This will close the Advanced Settings dialog and take you back to Create Container;
-
Click Next and you'll see a summary of the container configuration. Turn on the Run this container after the wizard is finished checkbox and click Apply to start Reactor.
After a few seconds to create the container and start it up, you should be able to browse to port 8111 on your NAS and see the Reactor UI: http://your-nas-IP:8111/
In the next steps, you'll be doing configuration by modifying the configuration files. These files are located in the Reactor data directory you created, in the config subdirectory. Any reference in other instructions to logs, config or other subdirectories will mean a subdirectory in your Reactor data directory. When asked to stop and start your container, you can just use the on/off slider in the Docker container list on the Reactor container's row.
You may now proceed to Concepts & Terminology, where you'll learn some basics about Reactor's objects, and then start to configure your hubs/controllers and get access to their devices.
Upgrading the Container
When new versions of the image are released, you can upgrade your container as follows:
- Open Docker by clicking the Open button under the Docker item in the Package Center of your NAS;
- In the Docker app, go to the Registry, and search for
toggledbits. The listing fortoggledbits/reactorshould come up. Click that row, and then click the Download button; - Go to the Containers list;
- Click on your Reactor container;
- Choose Reset from the Action dropdown (this is Clear on Docker apps earlier than 20.10.3-0554);
- Start the container.
- Go to your Reactor UI, hard-refresh your browser, and then confirm in the Reactor UI that the version/build number shown (upper-right corner) is that of the expected build.
Exporting Container Configuration
It is recommended that you export your container configuration once you have a working, properly configured container running Reactor. If you need to create the container from scratch in future, you can then simply import this saved configuration to recreate the container with all of its options. Remember to re-export the container configuration whenever you make changes (updating to a newer Reactor image doesn't count as a change for this purpose).
Access Control Behavior
Synology's implementation of docker works differently from standard docker implementations. In standard docker, IP requests to a container running in bridge networking mode (the default) will expose the real IP address of the client to processes running inside the container (like Reactor). On Synology Docker, processes inside the container see only the virtual network address it assigns to the container, and all requests appear to come from that same address. This befuddles the functionality of Access Control features like IP restriction and login failure IP blocking.
If you are not using Access Control, this has minimal impact on you: request logging shows only the virtual address, and if you don't care, you don't need to do anything. If you want the logs to reflect the real client address, or if you are using or intend to use Access Control, you can work around Synology's differences by running the container in host networking mode. The easiest way I've found to change the container networking mode is:
- In Synology DSM Package Center, open the Docker application and choose Container from the left navigation.
- Export the current container configuration (right-click the container, choose Settings > Export). Put the export file somewhere on the NAS filesystem where you can easily get to it (e.g. your NAS home directory);
- Stop the Reactor container (right-click, Action > Stop).
- Delete the Reactor container (right-click, Action > Delete).
- Using your favorite plain text editor, edit the exported file (which is JSON data): find and change the
network_modefrombridgetohost. Save the file. - Back in the Docker application, click Settings > Import in the list header and import the edited configuration file.
- Your container should reappear and will now be in host networking mode. Start the container (right-click on the container, Action > Start).
You should now be able to see the true IP address of HTTP(S) requests being logged in reactor.log and, if you use it, the Reactor HTTP Access Log.
Reduced Security
Unfortunately, running a docker container in host mode removes some security protections. Use your favorite AI or search engine to assess the differences between bridge and host networking for docker containers, and decide for yourself if you want to accept the appurtenant risks. If not, you will not be able to use any form of IP filtering or restriction configurable in Reactor. This linked post describes a way to modify your Synology firewall configuration, which may be a viable alternative (but requires additional work to replace the changes on each reboot of the NAS). You can also use a reverse proxy to access Reactor from your LAN (and, if you wish, externally), and correctly configuring Reactor's reverse proxy support should also result in correct client addresses being available to the running Reactor instance.
Updated 2026-Nov-21