I am hosting both Forgejo and Immich in Docker Containers. I use the example docker compose files from both projects with minimal changes to fit my setup. The volumes are mapped to a Synology NAS that is connected via NFS to the Docker host. Backup is another synology NAS at my parents house. I never had to restore, so I don’t know how easy that would be…
But that means that the database is running on nfs, right? I read that this is not recommended due to locking issues and roundtime latency.
You can run a separate db server using local storage and use NFS only for the data volumes for the applications themselves.
Yes. I didn’t have any problems so far. I guess, it’s because all my services are used by around four people, so the load is pretty low.
Forgejo can run with Sqllite if you're just hosting a small instance for your own purposes.
Always going to throw https://charm.land/blog/self-hosted-soft-serve/ into the mix for the questions. Works great, supports LFS, configurable and admon over SSH, multi user support. All from a CLI and easy to setup
Why not just run bare repos on your n100? That’s what I do. I have no need for a code forge with code collab when it’s just me pushing
https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server
If you want a web viewer use a static site git viewer like https://pgit.pico.sh/
How would you handle LFS in this setup?
Stand up a local lfs server or figure out a different way to store large files. I generally avoid lfs
I run gogs and that looks to have LFS support, but depending on your requirements that might not be enough.
From what I’ve read gitea is a fork of gogs and forgejo is a gitea fork so I should get similar benefits right?
Your plan sounds good to me.
I am using gitea (which afaik forgejo is a fork of) for the same reason, also on an n100, and it uses very few resources.
I use Debian lxc and deployed gitea in docker using ansible, but using the lxc helper scripts should also work great
For backups I use restic (running in another lxc) to push the files and DB dump directly to an external server, not the entire lxc
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.
-
No low-effort posts. This is subjective and will largely be determined by the community member reports.
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!