I’ve written a bot for !dailygames@lemmy.zip 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.
The easiest would be using docker, you can set up the container to always restart, that way it will be started automatically on NAS restart.
You can also download node.js from the Synology software center and manually add a cronjob to run after reboot, but the docker way is probably the best way to go.
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.
IIRC, that’s exactly it. You can either use their GUI (which is not half bad) or you can use the docker command in the terminal after you install the package.
Is there a way to get a terminal on the Synology itself, or is SSH from my PC the only way?
There is not. But I’d say keep SSH closed on the NAS or whitelist only your local IP in the firewall. I do that and turn it off when I don’t need it. It can be a bit risqué messing about with SSH on Synology because of how funky they’ve made the distro it’s running and any changes you make might not persist on reboot or after updates.
I only ever used SSH, so I don’t know.