Emoncms docker on Synology DSM 6

Tags: #<Tag:0x00007fc91d8c2948>


I’m trying to install emoncms in a docker through DSM 6 on synology server.
Unfortunatly I can’t launch the program.
Could you show me all steps to solve the issue?

Below the errors under the docker interface

AH00557: apache2: apr_sockaddr_info_get() failed for emoncms-docker

AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using Set the ‘ServerName’ directive globally to suppress this message

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80

(98)Address already in use: AH00072: make_sock: could not bind to address

no listening sockets available, shutting down

AH00015: Unable to open logs


It sounds like port 80 is already in use on you DSM. Sorry we can’t support DSM since we don’t have direct experience using this hardware. It should be possible.

THanks for your reply.
Could you tell me if I need to install in the same docker group Apache and PHP and bind them?
If it is the case could you show how proceed?

For anybody that is struggling with getting the Emoncms running in Docker on Synology:

  1. you need to have SSH access to your Synology. Just google “synology ssh”
  2. you obviously need to have docker installed
  3. you need Git Server installed (there is an official Synology package)
  4. SSH in
  5. Create a folder for your Docker images
mkdir /volume1/docker
cd /volume1/docker
  1. Then follow the instructions as usually with the exception of adding sudo when using docker-compose
$ docker pull openenergymonitor/emoncms
$ git clone
$ cd emoncms-docker
$ sudo docker-compose up

this will create all three containers for you and you will be able to sign in on http://yoursynologyip:8080. Assuming you don’t have anything else running on that port yet. If you do, you just need to edit docker-compose.override.yml and change the line - 8080:80 to what ever port you can spare.

      # Expose Emoncms on localhost port 8080
      - 8080:80

That´s sounds great.
I´m using EMONCMS on an EMONPI now for over 1 year without no troubles.
Than´s for all the work which was done in the past on this piece of software.
Now i bought a NAS and will transfer my EMONCMS installation to the NAS (Synology) as described.

But i have an additional question. I´m using the post to MQTT feature from EMONCMS to post values to the preinstalled MQTT server.

Is this service also useable in the docker version ? (Publish values to MQTT server and other could subscribe to this service outside from the container. How are the data then reachable from ourtside the container at which ip and at which port (1883)?

As i´m a toatl docker newbie maybe this is a silly question.

And additionally to the previous step : is it possible to use the MQTT server also to publish data from other sources to the EMONCMS MQTT server ? and same how can i specify the iP and the port. ?



Hello @MIA we don’t currently have an up-to-date docker file. It’s on our list of items to look at.

Then i will start first with installing an Docker image from Mosquitto on the NAS and configuring existing EMONCMS for the external MQTT server. Found some infos in the forum how this should work.

As my prefered solution is to have a seperate docker for EMONCMS on the NAS and a seperate Docker for MQTT also on the NAS which i can use for all the needed IOT staff for my homeautomatisation i´m working on (openHAB2+LCN+VELUX+SQUEEZE). As i planning to integrate some shelly´s which use also MQTT.

I’ve updated parts of the emoncms-docker today, it now uses the new settings.ini file and the directory structure is closer to what we are using on the EmonScripts build script. It’s still a work in progress, while it is functional from the HTTP API standpoint, the emoncms services such as emoncms_mqtt, feedwriter & service-runner are not yet running for the full emoncms capability.

You will need to build it from the docker file in the repository here:
rather than pull in the prebuilt image.

@glyn.hudson will be updating the pre build docker image soon and @emrys is going to look into the emoncms services.

Steps to try it are:

git clone
cd emoncms-docker
docker-compose build
docker-compose up

Then navigate to:


The result should provide a login screen that looks like this (but with a register button present):

Check that the version is 10.1.13 to indicate that its running the latest.

@glyn.hudson’s updated the docker image on docker hub

1 Like