Trying to get a container going in TrueNAS Scale
Disclaimer - Not a docker ninja, which is probably 90% of it, and docker-compose isn’t supported. It’s there, but it (docker-compose) doesn’t run, so there’s no linking up the mysql, etc.
We can get emoncms running through the apps interface, but configuration seems problematic.
By default, the web page comes up with the full list of things that aren’t configured.
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 37
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
OK, fine so we do this: Copying default-settings.ini to settings.ini yields the following:
Can’t connect to database, please verify credentials/configuration in settings.ini
Error message: No such file or directory
This is promising… but it looks like there’s no mysql anywhere to be found, No redis either I think, probably no mosquito, and since docker-compose isn’t working, it looks like I’m sad panda.
So what do I do? Set up mariaDB? Just treat this docker like a little LAMP server and go from there? What’s next if docker-compose is a non-starter?
Tips? Starting points?
Thanks!