I made a discord bot and was planning on self hosting it using docker(I’m new to using docker). However, I can’t find a way to get truenas to use my env file. I was able to get around that by using environemental variable. My bigger issue is that every time my bot restarts, my JSON file goes back to its defaults values. Is there a way around this?
Well, you’d need to define persistent storage for your software, and store the JSON file there. As to the .env file, the easiest way to do that IMO is to use the Dockge app, and then use that to manage any other containers:
The other possibility is by including other files in your custom app definition, as described here:
1 Like