this post was submitted on 31 Jan 2025
19 points (91.3% liked)

Selfhosted

41650 readers
383 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I've written a bot for [email protected] that I'm currently just running on my desktop. But I'd like to be able to set and forget it (except for when I do updates) by running it on my Synology NAS.

How can I best pull the node app from GitHub and run it on my Synology, preferably automatically running on start-up if the Synology is restarted.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 3 days ago* (last edited 3 days ago) (1 children)

I'd recommend to make a Dockerfile for it and run it that way. It'll be quite a lot easier than to manage installing a bunch of dependencies.

Here's a guide I found pretty good!

Here's a bit of a shorter one too to get some more reference.

[–] [email protected] 2 points 1 day ago (1 children)

How do you run a docker container on Synology? I have a DS923+ which AFAIK should be able to run it, but when I search for Docker in the Package Manager the only thing that comes up is Synology's own container manager, and I have no idea how to work with that.

[–] [email protected] 2 points 21 hours ago

It's basically a front-end GUI to Docker, like how some use Portainer. Synology has pretty alright documentation here. If you're on mobile, click the menu button on the top right to view the sub-pages for the docs, was confusing at first to find what more it had to say about it lol.

But in short, to spin up individual containers you can go to the "Container" page. But there's a big lack of control because Synology so I recommend to use Docker Compose under "Projects" for more fine grained control if needed. When you start a project you have to select a location for the project files and you can use dot notation for sub directory and files when doing volume mounting, eg. ./nginx/config:/etc/nginx/nginx.conf.

There's a lot to read on for containers in general and working with them on Synology is a tad different and sometimes a lot of hoops to jump through. But it's definitely nicer in the end than running almost anything outside of Synology's Office Suite through it!