I’m running the Netbird-Client on my TrueNAS.
I’m using the docker-compose-file from the docs.
But everytime TrueNAS is restarted the netbird-client isn’t running.
Could it be that restart: unless-stopped is missing in the compose-file?
services:
netbird-client:
container_name: netbird-client
hostname: <HOSTNAME>
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_RESOURCE
devices:
# Required when using userspace mode or when kernel module is not available
- /dev/net/tun
network_mode: host
environment:
- NB_SETUP_KEY=<SETUP KEY>
volumes:
- netbird-client:/var/lib/netbird
image: netbirdio/netbird:latest
volumes:
netbird-client:
name: netbird-client
Just added restart: unless-stopped to my compose-file and restarted TrureNAS.
The Netbird-Client was not started automatically and had to be started manually again.
Happen to have any logs? Otherwise, if it’s not restarting unless stopped. It’d be something with TrueNAS’s rebooting system that’d be messing with something.
I am using this with docker compose on my Synology NAS. I had to activate the tun module. Maybe this can help you on your TrueNAS system? I noticed that you haven’t set your Netbird URL yet. I think you need to set it in your file too. What does docker compose ps and docker comose logs say?