Installing Gladys on a QNAP NAS can be quite a challenge.
Here is a possible approach that worked for me.
Starting situation: QNAP, two SSDs in RAID, with a fixed IP address on the local network.
Step 1:
Dockerstation - Create an application - yaml:
***************************************************************************
services:
gladys:
image: gladysassistant/gladys:v4
#image: ghcr.io/gladysassistant/gladys-preview:cursor-matter-ac-mode-management-fb55
container_name: gladys
restart: always
privileged: true
network_mode: host
cgroup: host
logging:
driver: "json-file"
options:
max-size: 10m
environment:
NODE_ENV: production
# The database is now stored in the secure host volume
SQLITE_FILE_PATH: /var/lib/gladysassistant/gladys-production.db
SERVER_PORT: 8060
TZ: Europe/Berlin
# CHANGED: Set to 0.0.0.0 to use all interfaces (including vSwitch)
MATTER_BIND_INTERFACE: 0.0.0.0
MDNS_INTERFACE: 0.0.0.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# Your absolutely secure QNAP path:
- /share/CACHEDEV2_DATA/dockerdaten/gladysassistant:/var/lib/gladysassistant
- /dev:/dev
- /run/udev:/run/udev:ro
****************************************************************************************
Step 2:
The Matter Hub (in my case, an IKEA Dirigera) must be accessible on the classic network (i.e.: IKEA app - User - Hub settings - Thread network - Network management); NAT64 must be enabled there.
Step 3:
QNAP does not use IPv6 at the moment. It must be activated manually. But then there is a crucial step to perform. You must configure a static IPv6 route to the Matter Hub on the virtual switch that manages the Gladys containers:
… and that’s it
