root@xen:/# docker ps | grep emon
438c4a303cb2 emoncms/apr "apache2-foreground" 4 months ago Up 3 weeks 0.0.0.0:80->80/tcp emoncms
82544e7154f8 redis:alpine "docker-entrypoint..." 4 months ago Up 3 weeks 6379/tcp emoncms_redis
ff511ce35222 mysql:5.6 "docker-entrypoint..." 4 months ago Up 3 weeks 3306/tcp emoncms_sql
root@xen:/#
I’ve been a very happy docker user for about a year. I managed to migrate from a basic emoncms install inside a VM to containers without losing anything.
I’ve learned a lot with @glyn.hudson post and as usual forgot to drop a simple thank you.
Very easy indeed! I get a login page of emoncms, but what is the default username and password? I found raspi-raspberry as combination on the web, but that doesn’t work on my system (Lubuntu).
I found it myself blush. I thought I couldn’t use register, because it would send an e-mail and that probably wouldn’t work. But it’s just used as an login name. But now I would like to use emonHUB and that doesn’t seem to be included in de docker image. I think I will go for a regular Ubuntu install, as docker is too new for me :-). And - as far as I understand - the docker image is (at the moment) only for development, not for real use.
I just tried to spin up a docker container using openenergymonitor/emoncms:latest but I am getting v10.1.13 when I login. From what I can tell, this image hasn’t been updated on Dockerhub for 2 years.
Is there a process to update this image after an EmonCMS release? Or do I just need to build it locally and use my own version of the image - i.e. is the version on Dockerhub obsolete and unused?
This has been working well for me for about 18 months, I rebuild it pretty often.
I don’t use very many features so the rather enthusiastic rm -rf might get rid of things you care about.
FROM openenergymonitor/emoncms
RUN rm -rf /var/www/emoncms
RUN mkdir /var/www/emoncms
RUN git clone https://github.com/emoncms/emoncms.git /var/www/emoncms
WORKDIR /var/www/emoncms/Modules
RUN git clone https://github.com/emoncms/dashboard.git
RUN git clone https://github.com/emoncms/graph.git
RUN git clone https://github.com/emoncms/app.git
RUN git clone https://github.com/emoncms/device.git
RUN chmod -R a+rx .
WORKDIR /var/www/emoncms/
COPY settings.ini .
Just as an FYI - Please note that the systemd people are pretty strongly anti-Docker, because of Docker’s anti-systemd stance. So potentially expect difficult problems if you try to do anything complicated. Suppposedly Podman https://podman.io/ is a close to identical replacement. I don’t know much more than that; I haven’t used either.
Probably a daft questioin but then I am daft
I’m trying to install Emoncms in a docker container on an asutor nas.
I have docker installed on the nas ok.
So, here’s the daft bit. Do I need to install the Emoncms requirements (PHP, MySQL/MariaDB, Apache, Redis et al) on the NAS directly or in a docker container?
Following on from my question above. I started again fromm scratch following the instructions on this thread.
It seems to have gone ok but when I try to open it in a browser on another machine I get an Apache Error
Forbidden
You don’t have permission to access this resource.
Apache/2.4.38 (Debian) Server at
I have set up a Docker group. set access rights to rw.
Not sure what to try next.
Any pointers/ideas appreciated.
I attach a screenshot of portainer for info.