Issues with Deploying Custom Apps in TrueNAS Using Docker Compose

I’ve been trying to deploy a custom application in TrueNAS using Docker Compose, and I’m encountering some difficulties. I’ve followed the guide in the (TrueNAS Apps | TrueNAS Documentation Hub ) but I keep getting errors when trying to deploy the container.

Here’s the YAML file I’m using for the custom app:

version: "3"
services:
  my-app:
    image: my-custom-image:latest
    ports:
      - "8080:8080"
    environment:
      - APP_ENV=production
    volumes:
      - /mnt/my-app-data:/app/data
    networks:
      - my-network
networks:
  my-network:
    driver: bridge

The problem is that while the application shows as “Deploying,” it fails to start. The logs show this error:

Error: Unable to access network 'my-network'

I’ve checked my network configuration in the TrueNAS UI, and everything seems to be in place, but the app doesn’t seem to have access to the network.

I also followed the steps for configuring storage, but I’m still running into issues. The app’s data volume isn’t being mounted correctly, and it’s showing a “Permission Denied” error when trying to access files.

Has anyone encountered similar issues when using Docker Compose for custom apps in TrueNAS? Any advice or steps I could try to resolve this? :disappointed:

This is just a wild guess, but the network part, as far as i understand it should look like this

networks:
  my-network:
    external:
      name: bridge

If you’ve given us the correct path you’re using you’re trying to use the root dataset, which is not possible and would explain the permission issue.

The storage path should look like

/mnt/poolname/datasetname/appname-data:/app/data

In addition have you already created the network with docker in the command line?