Yes, I know what you're thinking - "You shouldn't auto-update your TrueNAS apps!" And you're probably right. But if you're feeling adventurous and want to live on the edge, this Docker container will automatically update your TrueNAS SCALE apps whenever updates are available.
BASE_URL
: Your TrueNAS SCALE instance URL (e.g.,https://truenas.local
)API_KEY
: Your TrueNAS API key (can be generated in the UI under System Settings → API Keys)CRON_SCHEDULE
(optional): Cron schedule for when to check for updates (e.g.,0 4 * * *
for daily at 4 AM). If not set, the script will run once and then exit.APPRISE_URLS
(optional): Apprise URLs to send notifications to (e.g.,https://example.com/apprise,https://example.com/apprise2
) More info on AppriseNOTIFY_ON_SUCCESS
(optional): Set to "true" to receive notifications when apps are successfully updated (default: "false")
-
Generate an API key in your TrueNAS SCALE UI:
- Go to System Settings → API Keys
- Click "Add"
- Give it a name and save
- Copy the API key to your clipboard
-
Deploy the container:
- Run the container on any Docker host:
docker run --name truenas-auto-update \
--restart unless-stopped \
-e BASE_URL=https://your-truenas-url \
-e API_KEY=your-api-key \
-e CRON_SCHEDULE="0 4 * * *" \
-e APPRISE_URLS="https://example.com/apprise,https://example.com/apprise2" \
-e NOTIFY_ON_SUCCESS="true" \
ghcr.io/marvinvr/truenas-auto-update
- or install it as a Custom App in SCALE:
- Go to the Apps page in SCALE
- Click "Discover Apps" in the top right
- Click "Custom App" in the top right
- Set the following values:
- Name:
TrueNAS Auto Update
- Repository:
ghcr.io/marvinvr/truenas-auto-update
- Tag:
latest
- Environment Variables (As described above)
- Restart Policy:
Unless Stopped
- Name:
- Install the app
- (optional) Review the app logs to ensure it's working as expected
This tool automatically updates your TrueNAS SCALE apps without manual intervention. While convenient, this could potentially lead to issues if an update introduces problems. Use at your own risk and make sure you have proper backups!
Cheers, marvinvr