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:
- 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!
view the rest of the comments
As I only want to use it for myself as jump-off point (and to mess around a tad) I'm fine with performance on an RPi4 (have the 8 GB version), but I'm struggling to get it next to the rest in my Debian install on it.
Local install fails as I need imagemagick 7 (Debian still had 6.9), and it refuses to compile with imei method. (that script wants to use /usr/local/bin/identify which I think it needs to install itself (part of imagemagick) and the compose file I couldn't get to work with an external (already hosted) postgres.
Any tips? I'm totally new with docker and ansible.
So in the official
docker-compose.yml
lines that define where/how to get the image for that application.For example:
https://github.com/LemmyNet/lemmy/blob/c9e9ff46faa40e2642343effb117693bfa525c5f/docker/docker-compose.yml#L41-L43
This tells docker to look for a file called
docker/Dockerfile
in the parent directory. This means that when you go to calldocker compose up -d
it will build an image from source using that Dockerfile. For the Pi we don't want this (at least as of 0.17.x; I haven't tested 0.18.0 yet).Instead we want to use a pre-built image. To do that we need to go to docker hub, specifically: https://hub.docker.com/r/dessalines/lemmy/tags and find the latest tag that matches the architecture of the system we're building on. I assume you're on a Pi4 running a 64bit so, so that gives us
0.17.3-linux-arm64
. After you've got that tag we just need to replace those 3 lines above with:Now when we go to call
docker compose up -d
it will pull down that prebuilt image instead of building for source. Btw, you'll want to do the same for thelemmy-ui
service.P.S. I don't have much experience using Ansible, so I can't help here. I normally just SSH directly into the Pi and do everything there.
Oh wait, I forgot, compose .yaml syntax is (almost) the same as Ansible, so no need for Ansible. Thanks for pointing to the docker images. I'll start messing about with those. Still need to pick an fqdn for those instances. Do I want to use lemmy.my.domain or direct my.domain. (as it's by all means mine anyway)