# Install Emoncms on Asustor NAS in Docker help

**URL:** <https://community.openenergymonitor.org/t/install-emoncms-on-asustor-nas-in-docker-help/21146>\
**Category:** Installation\
**Created:** [23 August 2022 10:29 UTC](https://community.openenergymonitor.org/t/install-emoncms-on-asustor-nas-in-docker-help/21146 "2022-08-23T10:29:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cliver](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/c/838e76/32.png) [@Cliver](https://community.openenergymonitor.org/u/Cliver)\
**Post date:** [23 August 2022 10:29 UTC](https://community.openenergymonitor.org/t/install-emoncms-on-asustor-nas-in-docker-help/21146/1 "2022-08-23T10:29:19Z")

</div>

Has anyone installed Emoncms in a docer container on and Asustor NAS?  
I could do woth an idiots guide to get it running.  
I have docker and portainer on the nas.  
If I install the openenergymonitor/emoncms fromj the hub it seems to go ok but I get the following when I try to open emoncms in a browser…

> Error: environment var ‘MYSQL\_HOST’ not defined
> 
> Error: environment var ‘MYSQL\_DATABASE’ not defined
> 
> Error: environment var ‘MYSQL\_USER’ not defined
> 
> Error: environment var ‘MYSQL\_PASSWORD’ not defined
> 
> Error: environment var ‘MYSQL\_PORT’ not defined
> 
> Error: environment var ‘REDIS\_ENABLED’ not defined
> 
> Error: environment var ‘REDIS\_HOST’ not defined
> 
> Error: environment var ‘REDIS\_PORT’ not defined
> 
> Error: environment var ‘REDIS\_PREFIX’ not defined
> 
> Error: environment var ‘MQTT\_ENABLED’ not defined
> 
> Error: environment var ‘MQTT\_HOST’ not defined
> 
> Error: environment var ‘MQTT\_USER’ not defined
> 
> Error: environment var ‘MQTT\_PASSWORD’ not defined
> 
> Error: environment var ‘MQTT\_BASETOPIC’ not defined
> 
> Error: environment var ‘PHPFINA\_DIR’ not defined
> 
> Error: environment var ‘PHPTIMESERIES\_DIR’ not defined
> 
> **Warning** : Redis::connect() expects parameter 2 to be int, string given in **/var/www/emoncms/index.php** on line **39**  
> Can’t connect to redis at {{REDIS\_HOST}}:{{REDIS\_PORT}} , it may be that redis-server is not installed or started see readme for redis installation

I obviously don’y have MYSQL, REDIS, MQTT or PHP installed correctly but I’m not sure where I need to install them. In another container, on the NAS itself or elsewhere?  
Can anyone point me in the right direction please?  
I’m new to Docker BTW 😉
