Docker would be my go to
Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
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.
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.
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.
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?
I only ever used SSH, so I don't know.
If you can containerise it you could run it in docker.
I would love to containerise it. I worked with Docker in a previous job, but honestly I've forgotten most of how to work with it. Would be a nice refresher to try and relearn how to create Dockerfiles and docker-compose.yamls.
Unfortunately I currently have two problems. First: I seem to be completely unable to test this on my desktop. When I open Docker on my PC, it complains that I need to run wsl --shutdown
, but despite doing that many times, it still complains, before immediately closing.
So I was going to try doing it entirely on the Synology. And then I ran into the issue that...I have no idea how to even start with that. 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.
Docker on windows is weird. It's why I run docker in a Hyper-V cm on my PC not in wsl.
Why can't you run it on your desktop?
I can, but that would require manually starting it up every time I restart my computer—which is daily, for the most part. And there are times when I don't even turn on my computer for the day, or don't do so before the 2pm time the bot needs to run. It would be better to have it running on a system that's always online.
You could use task scheduler. However, that won't fix the uptime issue.
Why can't you run it on your desktop?
Only some models of Synology units have the ability to run containers, so check that first.
Otherwise, you COULD try and install the deps from the Synocommunity packages, but they get messy pretty quickly due to architecture limitations per package (one package may only work on select models). You can browse those and their architecture targets on the synocommunity site to make sure what you need will be available. If you can't go the container route, I'd definitely read up on packaging your own app using the synocommunity guides, even if keeping it private.
Yeah I'm pretty sure my Synology should be able to run containers. It's a DS923+. But unfortunately 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.
It's just a docker frontend. Shouldn't be too confusing.