Hello, I discovered Gladys on YouTube (YT) while searching for something about Home Assistant (HA) ![]()
Being the owner of a Terramaster NAS with Docker and Portainer installed, on which Home Assistant (among other things) runs, I wanted to try Gladys.
The ideal with Portainer is to have a good Stack and then it runs by itself.
I simply created beforehand a shared folder “gladys” on volume1 of my NAS and changed the path in the stack to access it with my file manager Total Commander.
I also changed the port, because my NAS didn’t support the one indicated.
So, go to Portainer, Stacks, +add stack, paste the following text and deploy the stack
version: ‹ 3.8 ›
services:
gladys:
image: gladysassistant/gladys:v4
container_name: gladys
restart: always
privileged: true
network_mode: host
cgroup: host
logging:
driver: « json-file »
options:
max-size: 10m
environment:
NODE_ENV: production
SQLITE_FILE_PATH: /var/lib/gladysassistant/gladys-production.db
SERVER_PORT: 8420 # NAS port changed due to incompatibility
TZ: Europe/Paris
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /Volume1/gladys:/var/lib/gladysassistant # share on NAS disk 1 = /Volume1 directory = /gladys:
- /dev:/dev
- /run/udev:/run/udev:ro
watchtower:
image: nickfedor/watchtower
restart: always
container_name: watchtower
command: --cleanup --include-restarting\t
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Once installed, there should be a “homekit” folder and gladys-production files in the gladys directory on the NAS
Then go to the NAS address with the chosen port http://x.x.x.x:8050 and start the configuration.
Note that this creates 2 containers in Docker, including a “watchtower” which is in “healthy” mode
