Create Custom App with multiple containers


How can I create a custom app that has multiple containers?

Use docker compose in a sandbox. In the future you’ll be able to use that compose file with TrueNAS Electric Eel

TrueNAS Scale: Setting up Sandboxes with Jailmaker

I don’t think you can create a custom app with multiple containers. That being said, you can create a container via docker build that has multiple things in it with supervisord, etc, so, multiple daemons iow. The docker built container then is trivially run as a custom app.

That is, until Electric Eel release which will use compose. Or, you can go the jail route now.

Aren’t TrueNAS apps based on Kubernetes and Helm charts?

I was hoping I could use it.

As off today’s updates (24.04) I can’t create new custom apps:

[ENOENT] Unable to locate ‘ix-chart’ at ‘/mnt/Storage Pool 0/ix-applications/catalogs/github_com_truenas_charts_git_master/charts/ix-chart’

They are Kubernetes at present, however, what actually rjuns behind the “custom app” is containerd, which runs any ol container built by docker and others.

The Home Assistant app seems to be using a helm chart to use 2 containers:

I want to do something like this.

Although you could make a custom helm
Chart, that functionality is deprecated. And going away in Electric Eel, to be replaced with docker compose.

In the meantime, you can use docker compose in a sandbox.

See my previous post.

1 Like

You can, just learn to do docker and build your own until Eel when compose makes it easier. No need for helm. You’ll need to use/include something like supervisord to run multiple apps within the built container.