Self-host your own Git platform! // Gitea Tutorial

  Рет қаралды 26,347

Christian Lempa

Christian Lempa

Күн бұрын

Пікірлер: 118
@guard13007
@guard13007 Ай бұрын
So excited to see this, not because I need it, but because this is what I've been using for so many years. It's the fastest lightest weight git server and yet somehow still is comparable to every other option.
@christianlempa
@christianlempa Ай бұрын
Awesome! :)
@laurencetrippen6804
@laurencetrippen6804 Ай бұрын
Your self-host videos are amazing!
@christianlempa
@christianlempa Ай бұрын
Thank you so much!! :)
@iamutba
@iamutba Ай бұрын
I have been using Gitea and Gitlab CE in my homelab for quite sometime now. I integrated both them with Jenkins for running pipeline separately. It's awesome!!!
@araa5184
@araa5184 Ай бұрын
Same
@xoniq-vr
@xoniq-vr Ай бұрын
How do you compare it with Gitlab? Why combine both? I use Gitlab too, but might switch to Gitea as Gitlab is very heavy to use with doing nothing.
@0r_1x
@0r_1x Ай бұрын
@@xoniq-vr Interested as well. Was debating actually running Gitea on a Pi.
@xoniq-vr
@xoniq-vr Ай бұрын
@0r_1x i personally wouldn’t trust a pi with repositories. Especially when using a SD card which is limited in write actions before it fails. I have 2 Gitea instances running cloning eachother so I can failover by changing the internal routing from the domain to the proper VM, and backing up the whole docker container to a tar.gz on my backup server.
@christianlempa
@christianlempa Ай бұрын
Awesome! I'm also using GitLab, it's amazing ;) More about a comparison in next video
@ryanvelbon
@ryanvelbon 17 күн бұрын
You are like the Stephan Bodzin of IT! 😄
@christianlempa
@christianlempa 16 күн бұрын
Didn't know this guy :D but yeah you might be right
@monster8570
@monster8570 Ай бұрын
Forgejo > Gitea. Forgejo is a Gitea Fork, which i like more than gitea. Gitea is becoming more and more commercial, forgejo is the opposite, that is one of the reasons.
@christianlempa
@christianlempa Ай бұрын
I think it's still too early for Forgejo, we should give it more time to see how it progresses
@BinaryZeroTV
@BinaryZeroTV Ай бұрын
@@christianlempa xD Forgejo is 2years old! Its not to early.
@RobertMcGovernTarasis
@RobertMcGovernTarasis Ай бұрын
Agreed.
@daro_
@daro_ Ай бұрын
@@christianlempa Can you please clarify what made you think like that ? I assume you tried it but didn't like it as much as Gitea. Would love to know.
@jacksquat55
@jacksquat55 Ай бұрын
Christian, that's a killer icon you've got there! I love it.
@christianlempa
@christianlempa Ай бұрын
Thanks :D
@codywaits4012
@codywaits4012 Ай бұрын
Christian how did you know I was in the middle of deploying my docker compose file for Gitea with Traefik, so I can host all of my other docker compose files for home lab services 😅? Excited to watch this! Edit: I also want Twingate too! You are hitting the mark on this video.
@christianlempa
@christianlempa Ай бұрын
Haha, I didn't know, but it was perfect timing :D
@shinebayar
@shinebayar Ай бұрын
Support forgejo.
@christianlempa
@christianlempa Ай бұрын
I think it's still too early for Forgejo, we should give it more time to see how it progresses
@dixon1e
@dixon1e Ай бұрын
Starting with forgejo to see how it goes. Thank you for this video.
@poipsm6119
@poipsm6119 Ай бұрын
after forgejo fork gitea, i migrate to forgejo ..
@christianlempa
@christianlempa Ай бұрын
Thank you! ;)
@s.i.m.c.a
@s.i.m.c.a Ай бұрын
about databases - it have sqlite built in database, if not specify any DB setting. It running quite smooth without any external database.
@christianlempa
@christianlempa Ай бұрын
Thanks for sharing! However a real database is mostly recommended in larger setups, that's why I prefer it over sqlite
@stayupthetree
@stayupthetree Ай бұрын
@@christianlempa feels like something that should've been part of the video tho, Ive been using gitea without db setting for quite a while with zero issue and I think my setup is rather large but who knows. I was originally using postgres but ran into constant permission errors no matter the configuration of UID/GID it would create db files outside of the configured permissions that would effectively kill the container
@phii7u
@phii7u Ай бұрын
​@@christianlempa SQLite is a real database and perfectly capable of handling large setups without a sweat. It's time to move on from the sentiment that SQLite is only for mobile devices and embedded systems. If you need a cluster (or server - client architecture), then SQLite is not the right database; however, there are other approaches, like a database for each customer instead of a cluster. See what the folks at Turso are doing. They forked SQLite into LibSQL because they wanted to extend SQLite, but to this day, SQLite is maintained by only three people and does not accept contributions from outside.
@MMWielebny
@MMWielebny Ай бұрын
I agree up to a degree. Build-in sqlite will not allow me to run multiple gitea instances on it. But for home lab it will be fine. In my case I had gitea with external db because I liked to move it from host to host (not vm based deployment but only containers). I could not use vms as my hosts have different cpus. They are around 100km aparat as well :)
@mattheushappe876
@mattheushappe876 Ай бұрын
why gitea and not the newer forkv forgejo?
@christianlempa
@christianlempa Ай бұрын
I think it's still too early for Forgejo, we should give it more time to see how it progresses
@dzisonline
@dzisonline Ай бұрын
Perfect timing! I was loathing upgrading my gitlab project. Hopefully, gitea is more lean to run and easier update.
@xoniq-vr
@xoniq-vr Ай бұрын
Gitea is very simple to run and with great performance. Even tried it on my Synology NAS just to pull other repos as mirror/backup, running flawless on my NAS with 350 mirrors on it, which automatically pulls new commits from the original repos.
@dzisonline
@dzisonline Ай бұрын
@@xoniq-vr Nice! Thanks.
@christianlempa
@christianlempa Ай бұрын
Awesome! :)
@xoniq-vr
@xoniq-vr Ай бұрын
I started with Gitea as a mirror copy for my own repos or other repos I follow for preservation. But I’m very pleased in how it works. So eventually I might change to it fully, with a additional mirror as failover.
@KR1ML0N
@KR1ML0N Ай бұрын
I love gitea, especially after everything github is doing as of late.
@christianlempa
@christianlempa Ай бұрын
Yea Gitea is amazing!
@bladethirst1
@bladethirst1 Ай бұрын
Is there anything about Gitea that feels less handy than GitHub?
@danielcastrorodriguez3934
@danielcastrorodriguez3934 Ай бұрын
thanks Christian! so well explained
@christianlempa
@christianlempa Ай бұрын
Thank you so much! :)
@SanjinLisic
@SanjinLisic Ай бұрын
Gitea is awesome, I've been using it for years after moving from Gogs. Running it and Drone for CI, building releases and adding them to Gitea. Also if you want to self host your containers or npm packages you can do that as well using Gitea.
@christianlempa
@christianlempa Ай бұрын
Nice!
@robfahey7363
@robfahey7363 Ай бұрын
Great video Christian, I've been running Gitea for a while and wondering if I needed to move over to Gitlab. Looks like I am staying on Gitea. If you are interested I have some notes about doing a SSH hand-off between docker host and the Gitea container so you don't have to use a custom port number for ssh.
@christianlempa
@christianlempa Ай бұрын
Sounds like a good idea! Why not submit it our boilerplates GitHub Repo, and we'll review it :)
@BinaryZeroTV
@BinaryZeroTV Ай бұрын
I like onedev or forgejo more than gitea 😊
@akaibukai
@akaibukai Ай бұрын
Never heard of onedev... Seems worth giving it a shot! Thanks for sharing. I also ditched Gitlab because of his huge resource needs in favor of Gitea and Woodpecker. Then I watched about the Forgejo fork but never had the chance to actually migrate to it.. I wonder how it's now vs Gitea.
@nosbig98
@nosbig98 Ай бұрын
@@akaibukai It's still very similar to Gitea, but they hard-forked the Gitea's code after the move towards open-core. They are also still slowly working towards forge federation, so that you can file a PR on your own Forgejo instance against a remote instance. Moving from Gitea to Forgejo was seamless; I just replaced the binary and used the same database and repos.
@christianlempa
@christianlempa Ай бұрын
I think it's still too early for Forgejo, we should give it more time to see how it progresses
@nosbig98
@nosbig98 Ай бұрын
@@christianlempa That's fair. I am an exceptionally light user of any Git hosting at the moment, and I took the exit while it was still a drop-in replacement, rather than the risk that I would have to start standing it up sometime later from scratch.
@fvgoya
@fvgoya Ай бұрын
Gitea is pretty good and also the actions. Very handy to update some of my projects (websites). I installed the Gitea on my Proxmox container.
@christianlempa
@christianlempa Ай бұрын
Nice!
@bladethirst1
@bladethirst1 Ай бұрын
How many nodes doe your pve cluster manages?
@tamasgaspar3821
@tamasgaspar3821 27 күн бұрын
Thank You! Very usefully video.
@christianlempa
@christianlempa 27 күн бұрын
Thanks! :) glad you think so
@benotisanchez5583
@benotisanchez5583 Ай бұрын
Gitea also features package registries for package managers like npm, cargo, apt, etc. It's very convienent if you want to host your own packages. Gitea also has a container registry for docker images. I'm still navigating my way through that, but it provides a good alternative for docker hub.
@christianlempa
@christianlempa Ай бұрын
True, that's a good feature :)
@cyberspearmint
@cyberspearmint Ай бұрын
Seems like a lot of self hosters have swapped from gitea to forgejo.
@christianlempa
@christianlempa Ай бұрын
I think it's still too early for Forgejo, we should give it more time to see how it progresses
@Alex-rg1rz
@Alex-rg1rz Ай бұрын
thanks! good to know that it's lightweight
@christianlempa
@christianlempa Ай бұрын
You're welcome, stay tuned for the more in-depth comparison video Gitea vs Gitlab ;)
@FunctionGermany
@FunctionGermany Ай бұрын
why does gitea need to know the ssh port if you change it from 22? the service config in the compose.yaml should take care of it and simply map incoming connections on 2221 (or whatever you chose) to 22 inside the container and the container should have no issues. any ENV config should be to change the internal port of ssh so that you could configure 2221:2221, or am i missing something?
@christianlempa
@christianlempa Ай бұрын
That’s right, but in the Gitea webUI it still thinks it’s listening on port 22, so to append the right ports to any links you have to add the ENV variable.
@FunctionGermany
@FunctionGermany Ай бұрын
@christianlempa got it, it's to make copy-paste stuff with ssh work correctly. thank you!
@illyont
@illyont Ай бұрын
Great video! For some reason cloning using ssh don't work for me, and vsCode are throwing errors. Any chance you can go into a bit more detail on the ssh part of this in a later video?
@christianlempa
@christianlempa Ай бұрын
Thank you! I think you got some misconfiguration, maybe you should join our discord, share your configs and what error you're getting
@mlmatt77
@mlmatt77 Ай бұрын
Hello Christian, thank you for this very interesting video on Gitea. Would it be possible to go into more detail on the CI/CD subject with gitea actions in a future video?
@christianlempa
@christianlempa Ай бұрын
Thanks! Probably I'm going to make a video about GitLab CI/CD first, can't say if I'm gonna do it for Gitea as well at some point.
@carlosgallego1076
@carlosgallego1076 Ай бұрын
Thanks for the video
@christianlempa
@christianlempa Ай бұрын
Thanks for watching! :)
@tombrigham7808
@tombrigham7808 17 күн бұрын
I've been using Gitea for a long time. But every time I update it to a new version, it gives me a 500 error in web browser and can no longer see my repo in the browser. Seems to be permission errors. To fix it, I end up completely wiping my persistent storage, and recreate all my repo's and then push my local repo back to the Gitea server. Do you think you can do a video on how to update Gitea? Or drop any hints on why pulling a new docker image kills it? I didn't know about the migration so maybe that would help... but I'd prefer to know how to update without killing my server. THANKS!
@kabil_ECE
@kabil_ECE Ай бұрын
Hi lempa did you ever tried nix package manager....
@christianlempa
@christianlempa Ай бұрын
not yet, maybe next year
@SimarMannSingh
@SimarMannSingh Ай бұрын
Is SSH working with such installation? I did almost the same but in my case, SSH access to git doesn't work. I checked and found a detailed gitea documentation on how to make SSH work which involves creating a passthrough.
@christianlempa
@christianlempa Ай бұрын
Works great for me
@SimarMannSingh
@SimarMannSingh Ай бұрын
@@christianlempa The only thing different for me than your setup is that I am using nginx as reverse-proxy and not traefik. So, naturally, I skipped those traefik config from the docker-compose file. Anyway, I will take a detailed look at it. Dankeschön.
@lightoflifegames7227
@lightoflifegames7227 4 күн бұрын
are HDDS fine for this or should I use SSDs? Thanks
@christianlempa
@christianlempa 4 күн бұрын
I'm using fast drives for app deployments, makes the most sense.
@ivanmaglica264
@ivanmaglica264 Ай бұрын
Hey Christian! Question about DB, do you prefer having single DB server that is shared among services or do you create separate DB servers for each service? Data mobility tips balance in favor of separate servers, but management and backups favor single shared DB server. I want to hear your thoughts.
@christianlempa
@christianlempa Ай бұрын
I prefer running one database server and connecting my apps to it. Unless it's necessary to run a specific version.
@vijeyparthasarathy
@vijeyparthasarathy Ай бұрын
Hi thanks for the detailed video. I checked the link and saw there is a paid version and I came across forjio or forgeo.. like to know what is the difference between the two.. asking this because it's open source and free for both personal and business .... need guidance on this
@HadeedSarfaraz
@HadeedSarfaraz Ай бұрын
Forgeo is a hard fork of gitea because of the paid edition
@vijeyparthasarathy
@vijeyparthasarathy Ай бұрын
@HadeedSarfaraz Can we use this too...
@HadeedSarfaraz
@HadeedSarfaraz Ай бұрын
@@vijeyparthasarathy I am confused by the question. Its similar to gitea in setup but its personal choice which project to use.
@vijeyparthasarathy
@vijeyparthasarathy Ай бұрын
@@HadeedSarfaraz Thanks for the clarification.
@christianlempa
@christianlempa Ай бұрын
Thank you, :) I think it's still too early for Forgejo, we should give it more time to see how it progresses
@ArifKamaruzaman
@ArifKamaruzaman Ай бұрын
Ah I've been using Gitea for some time. I run on raspberry pi3b. Pretty good for a single user.
@christianlempa
@christianlempa Ай бұрын
Good to hear!
@wstrater
@wstrater Ай бұрын
You may want to add a link to your Twingate tutorial since you are promoting the service in the video.
@christianlempa
@christianlempa Ай бұрын
Good point, I need to update that shortly
@Thiccolo
@Thiccolo Ай бұрын
Hey man I just discovered your channel, do you have a playlist where people who are totally new to Linux administration and cloud containerization ETC.
@christianlempa
@christianlempa Ай бұрын
Welcome on board! Here is a playlist about docker: www.patreon.com/collection/239867
@mikephares5104
@mikephares5104 Ай бұрын
Thank you 🎉
@christianlempa
@christianlempa Ай бұрын
You’re welcome 😊
@frooastside
@frooastside Ай бұрын
dockge is so nice
@christianlempa
@christianlempa Ай бұрын
It is!
@djgigabit
@djgigabit Ай бұрын
What is wrong with gitlab?
@christianlempa
@christianlempa Ай бұрын
Nothing, actually I still use it. But more about that in the next video ;)
@djgigabit
@djgigabit Ай бұрын
@ thanks for response and my question came from a good place 😎 gitlab seems very full featured however seen lots of hype recently over gitea so was totally curious. Love your content 🙏
@Gilgwathir
@Gilgwathir Ай бұрын
Git is one of the two things I'm not going to selfhost. The other is the password manager. If I have my passwords/secrets and my git repo, I can completely rebuild using Ansible, even if everything burned to a crisp and had to be replaced. But I need this seed crystal.
@christianlempa
@christianlempa Ай бұрын
Fair point! I also don't like hosting a password manager, and I'm still using GitHub for many things, but for my personal homelab projects I like to use a self-hosted Git
Setting up a production ready VPS is a lot easier than I thought.
29:50
Self Hosting Has Changed My Life - What I Self Host
17:31
The Linux Cast
Рет қаралды 131 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
NAS OS Showdown! // TrueNAS vs Unraid
18:08
Christian Lempa
Рет қаралды 49 М.
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 1,6 МЛН
EXPOSE your Homelab to the INTERNET?! (Be Careful)
16:28
The Hardwarek3r
Рет қаралды 1,2 М.
You want a real Name Server at home? // DNS
32:31
Christian Lempa
Рет қаралды 291 М.
Secure Your Self-Hosted Network with Wazuh
21:49
Techdox
Рет қаралды 112 М.
Quick and Easy Local SSL Certificates for Your Homelab!
12:08
Wolfgang's Channel
Рет қаралды 916 М.
Docker Image BEST Practices - From 1.2GB to 10MB
7:15
Better Stack
Рет қаралды 159 М.
I Tried HexOS and It's Not for Me...
9:53
Lawrence Systems
Рет қаралды 53 М.
How to Host YOUR OWN GitHub with Gitea!
19:51
hoff._world
Рет қаралды 2,1 М.
Simple HTTPs for Docker! // Traefik Tutorial (updated)
38:06
Christian Lempa
Рет қаралды 76 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.