YW!
When you don’t use
docker run
but use
docker compose (Synology) instead :
The homey-shs.yml already has an entry for auto restart:
.
If you’re interested, you can limit the used RAM;
Edit the .yml and add the lines with deploy: including the memory: line, like the example below;
Optional: The reservations: line is used to make sure there’s at least X MB available
Optional: the environment: line(s), is used to assign custom port numbers
Example .yml:
services:
homey-shs:
image: ghcr.io/athombv/homey-shs:latest
container_name: homey-shs
deploy:
resources:
limits:
memory: 2048M
reservations:
memory: 1024M
restart: unless-stopped
network_mode: host
environment:
PORT_SERVER_HTTP: "12345"
PORT_SERVER_HTTPS: "54321"
privileged: true
volumes:
- ~/.homey-shs:/homey/user
