# Homey Self-Hosted Server on Synology | Megathread

**URL:** <https://community.homey.app/t/homey-self-hosted-server-on-synology-megathread/146437>\
**Category:** Homey Self-Hosted Server\
**Created:** [December 5, 2025, 2:14pm UTC](https://community.homey.app/t/homey-self-hosted-server-on-synology-megathread/146437 "2025-12-05T14:14:25Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 21, 2025, 9:32pm UTC](https://community.homey.app/t/homey-self-hosted-server-on-synology-megathread/146437/34 "2025-12-21T21:32:39Z")

</div>

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:** _

 ![Screenshot_20251222_013418_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/8/68570f3964a696cc2555037b74d31ea88ab771c7.jpeg)

.

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:

```auto
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

```

---

_[View the full topic](https://community.homey.app/t/homey-self-hosted-server-on-synology-megathread/146437)._
