use .env file via TrueNAS Scale custom app

digity

Contributor
Joined
Apr 24, 2016
Messages
156
I gave up on trying to reference a .env file directly in the custom app form. I guess a .env file is essentially the external version of environment section of docker runs or compose files. This meant to get the variables from the .env file in the container, I had to enter each variable manually in TrueNAS' custom app form. There's too many environment variables (over 20) to enter in the form and that'll take way too long (and it just seems a clunky way to do this).

I still want cleaner, easier control of docker apps running in TrueNAS, so I ended up doing the "Linux VM with docker + network bridge interface + NFS/CIFS share" method. Access to datasets are likely not as fast as TrueNAS built-in apps/containers, but the clunkiness of TrueNAS' built-in implementation makes the workaround worth it for now
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
If i remember correctly i'm using env variables with my firefly-data-importer custom app without problems
 
Top