How to install BrewPi on Synology NAS with Docker

Docker app
The BrewPi server can run from a docker image running on a Synology NAS.
Check if you have a compatible Synology NAS by trying to install the docker app.
Open the Package Center and search for the Docker app.



The docker app is only available for 64-bit versions of the Synology NAS.
If you can install the app, go ahead.

Download the BrewPi docker image
Open the Docker app.



Go to 'Registry', search for brewpi.
Double click the brewpi/brewpi-ubuntu image to download it.



Launch the BrewPi image
Go to 'Image' and select the brewpi/brewpi-ubuntu image and click the launch button.



Type a name for the container and press the advanced button.



Go to 'Volume' and press the button 'Add Folder'.
Select (or create) a folder on the Synology NAS to hold your BrewPi data and type /data as the mount path.



Finally go to 'Port Settings' and change 'Local Port' to a port of own choice.



Click OK to confirm and Next to continue.
After reviewing the information, press APPLY to finish the installation.



Go to 'Container'. You should see your new BrewPi container running :)

To log in on the command line interface (CLI) of the container, double-click the BrewPi container, go to Terminal and press the Create button.



Click the new Bash option that appeared.



We're going to set the correct timezone from the CLI. To do this, type: sudo dpkg-reconfigure tzdata
You are now presented with a menu to select a geographic area and a city or region to set the timezone.



After selecting you can press the delete button and confirm to end the bash session.
Close the container page by clicking the X in the top right of the container.


Configure the server to find the BrewPi Spark
Open the File Station app and go to the folder that you selected to mount to /data and open the settings folder.
In this folder you'll see the file config.cfg.example. Copy this file and rename it to config.cfg.



In config.cfg, change the port setting to:

port = socket://<ipaddress of the brewpi spark>:6666

Don't confuse this port setting with the port setting of the container. This port refers to the serial port of the BrewPi Spark. By setting it to a socket, we can emulate a serial port over WiFi. The IP address of the BrewPi Spark is shown on the display, after you have connected it to your home WiFi.

Open the BrewPi web interface in a browser by going to the IP address of your NAS, followed by the exposed port you set up earlier, for example: Go to http://192.168.1.100:83, assuming 192.168.1.100 is the IP address of your NAS.
That's it! You should see the BrewPi web interface in your browser. If the script is not running within a minute, check the 'Maintenance panel → Logs' tab.



Congrats, you've set up your BrewPi server!