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?