Gitea - Keep Your Repo Private At Home!

  Рет қаралды 45,842

Jim's Garage

Jim's Garage

Күн бұрын

Пікірлер: 148
@itscarlsanity
@itscarlsanity 2 ай бұрын
"Its got tea in it. As an englishman, I fully approve (sips tea)" All in a serious tone. Best thing I've seen all day, got me unexpectedly haha
@Jims-Garage
@Jims-Garage 2 ай бұрын
Haha, thanks
@cjmoss51
@cjmoss51 8 ай бұрын
Forejo is a fork of Gitea since theres some controversey over ownership and open source. That being said im hoping to get my vs-code hooked to it like you demonstrated here. Thank you again for the great video.
@Jims-Garage
@Jims-Garage 8 ай бұрын
Thanks, you're welcome. I'm going to check Forejo
@DarthDweeb
@DarthDweeb 9 ай бұрын
I just quickly ran up an instance of gitea on a raspberry pi to see how the ssh would work. I added a port pass through of 2222:22 inside the docker compose file, added an ssh key to my user in gitea, and it just worked. Gitea even recognized the host port mapping on initial configuration. I haven't tried the SSHing shim on the host, as that is far more complicated for a docker deployment than it should be, but I might check it out.
@JavierPerez-fq2fi
@JavierPerez-fq2fi Ай бұрын
And you can clone repositories by ssh -T git@blablabla using a remote machine? I was always prompted to add a password even adding ssh key for user in gitea... running out of ideas 😞
@ostraca
@ostraca 9 ай бұрын
Local repos are good for pushing portainer stacks with webhooks instead of storing the docker compose files in portainer. I'd also make each individual local repo private so you can only pull with a ssh key.
@ewenchan1239
@ewenchan1239 Ай бұрын
It is my understanding that webhooks in Portainer is a "business" feature - i.e. not available to the free, community edition of Portainer.
@ostraca
@ostraca Ай бұрын
@@ewenchan1239 webhooks still work, they have a "Re-pull image" and "Force redeployment" hook that's business only. If you make changes to your docker-compose.yml it still will update your container to reflect those changes.
@LUFS
@LUFS 9 ай бұрын
All videos on this channel are great. I‘m happy I found it. 🙏 Thanks!
@Jims-Garage
@Jims-Garage 9 ай бұрын
Welcome! Thanks for the feedback.
@Glatze603
@Glatze603 9 ай бұрын
Gitea is nice for home use only (without public contact) 🙂 Thanks for this video.
@Jims-Garage
@Jims-Garage 9 ай бұрын
Thanks, I agree.
@NubeBuster
@NubeBuster 9 ай бұрын
Its important to have geological backups if you are hosting your own. Or at least two seperate disks backup
@Jims-Garage
@Jims-Garage 9 ай бұрын
Thanks, I agree. I have a mini series on just that process (321)
@MarcMcMillin
@MarcMcMillin 9 ай бұрын
great stuff! going to push this to my docker swarm 🙂
@Jims-Garage
@Jims-Garage 9 ай бұрын
Go for it! Let me know how it works out.
@brahyamalmonteruiz9984
@brahyamalmonteruiz9984 8 ай бұрын
excellent video!
@Jims-Garage
@Jims-Garage 8 ай бұрын
Thank you very much!
@haraldsimon2807
@haraldsimon2807 9 ай бұрын
A simple git server using http or ssh is enogh at home or do you need a workflow or build pipelines?
@ewenchan1239
@ewenchan1239 Ай бұрын
Three questions: 1) Why use gitea (besides the fact that it was the word "tea" in it) instead of GitLab (for a local, self-hosted git repo)? 2) If I don't have traefik set up, I should be able to set the network from `proxy` to `host`, correct? 3) If I don't have the DNS set up, how would I find out what is the IP address:port that I would need to connect to, to access my locally deployed gitea? Your help is greatly appreciated. Thank you.
@Jims-Garage
@Jims-Garage Ай бұрын
1, no reason - just pick which you prefer and matches the features you require. I will cover gitlab in the future. 2, yes 3, it would be the IP of the docker host and the port specified in the docker compose
@ewenchan1239
@ewenchan1239 Ай бұрын
@@Jims-Garage 1) Thank you. I ended up deploy gitea at home, for now, just so that I can push the Vuepress changes that I am making inside VSCode to it, so that it will stop complaining/asking me about it. It took a few tries and to get it to sync up correctly, I had to delete my Vuepress site/directory so that it would sync up properly with gitea. 2) Thank you. 3) Gotcha. Thank you.
@johanntes2248
@johanntes2248 9 ай бұрын
Hi Jim, thank you for your videos, they are great! I think you forgot to expose the ssh port in the docker-compose file 😅 . Greetings from germany
@Jims-Garage
@Jims-Garage 9 ай бұрын
Yes, you are right - the example I have provided doesn't have the port exposed as it's for HTTPS only. I did see the instructions with exposing 2222 etc and that is what I tried extensively behind the scenes.
9 ай бұрын
@@Jims-Garage I also use gitea as my solution for self-hosted git. To access it through SSH, I configured two env vars in gitea: SSH_PORT (which represents the exposed port on my server, e.g., 222) and SSH_LISTEN_PORT (which is the internal port on which gitea listens to, e.g., 22). Besides that, I mapped port 222 on the host machine to port 22 on my gitea container.
@John117-
@John117- 9 ай бұрын
@@Jims-Garageyou might need a separate traefik endpoint for the ssh port
@DarthDweeb
@DarthDweeb 9 ай бұрын
I have ssh working, but I set mine up years ago on it's own vm. I didn't have to do any magic sauce with docker containers.
@MichaelRinghusGertz
@MichaelRinghusGertz 9 ай бұрын
You could make a video where you compare this one to a selfhosted version of gitlab. That i would love to see.
@Jims-Garage
@Jims-Garage 9 ай бұрын
Thanks, I'll consider that for future
@blinkitogaming
@blinkitogaming 7 ай бұрын
I'd also like to see that comparison. Right now I'm running a self hosted Gitlab instance. Don't know if it's the same with Gitea, but Gitlab seems to be really heavy and resource consuming.
@deanxaka
@deanxaka 3 ай бұрын
SSH can be used if gitea is hosted in a vm and not in docker.
@VaibhavShewale
@VaibhavShewale 9 ай бұрын
looks awesome
@clangsison
@clangsison 3 ай бұрын
very helpful, thanks
@Jims-Garage
@Jims-Garage 3 ай бұрын
You're welcome!
@tomrogo87
@tomrogo87 5 ай бұрын
A fine guide Jim, but how do you CI/CD your cluster and/or apps? What's the workhorse for your updates?
@Jims-Garage
@Jims-Garage 5 ай бұрын
I use fleet, part of rancher for k3s
@WernerBeroux
@WernerBeroux 9 ай бұрын
I probably would have covered Gitea vs GitLab first though. Yes GitLab is more heavy (memory mostly), but it has a lot of great features like security, CI, code editor...
@Jims-Garage
@Jims-Garage 9 ай бұрын
I will come onto it later, thanks 👍
@LawlessSentry
@LawlessSentry 9 ай бұрын
I wouldn't consider not having a CI a huge problem. You can use something like Jenkins.
@WernerBeroux
@WernerBeroux 9 ай бұрын
@@LawlessSentry you're bringing back memories. Haven't heard that name in a long time. Though it's not the same as GitLab CI which does a lot more: yaml config (not XML), detects project type and automatically builds, scans for issues, creates containers, monitors them, deploys them per branch, etc. Supports multiple runner(builder types), runners based on containers... And gives all the right info directly in a pull-request, issue tracker, etc. So many things. However I don't disagree that you can live without.
@JohnWeland
@JohnWeland 9 ай бұрын
awesome work Jim, would be neat to se runners setup for Gitea and even for Github
@Jims-Garage
@Jims-Garage 9 ай бұрын
I'll come back in the future once there's a stable release
@Glatze603
@Glatze603 9 ай бұрын
Hi Jim, why do you still use docker and docker compuse with sudo? You only need to add your local user to the docker group and reboot your machine. After this you can start/stop your compose files without sudo.
@Jims-Garage
@Jims-Garage 9 ай бұрын
You're right, old habits and security I guess
@Shaq2k
@Shaq2k 9 ай бұрын
Very nice. Love your videos. But Gitea seems to miss things like Gists? Can you do a Gitlab as well?
@johnholland2575
@johnholland2575 9 ай бұрын
Keep up the good work, James. Like to know why you didn't put gitea in your RKE2 cluster?
@Jims-Garage
@Jims-Garage 9 ай бұрын
It kills my channel whenever I show Kubernetes 😂 plus, I've shown how to migrate over. Gitea actually has a helm chart which makes it trivial to deploy.
@johnrushford3803
@johnrushford3803 9 ай бұрын
I use Gogs, free and open source written in go. I've not had any problems setting it up to use ssh
@Chris-ox2rq
@Chris-ox2rq 9 ай бұрын
Great video! I'm running gitea locally as a service under systemd rather than under docker so that it leverage's the host's ssh port and ssh-based access to repos works. Really liking gitea's runner capability (largely compatible with github actions).
@Jims-Garage
@Jims-Garage 9 ай бұрын
Thanks, yes I was able to run it easily as a VM with SSH, Docker is tricky! I'm going to check out runners soon.
@nosbig98
@nosbig98 9 ай бұрын
I, too, run it as a service and not as a Docker container, and I have no issues with SSH access. TBH, I only use containers where I have to; I've been in the Linux space for a couple of decades, so I like having all the knobs to adjust and control over file locations and such...
@primenetwork27
@primenetwork27 6 күн бұрын
Nice work can you make a video for ci/cd gitea , jenskin and ansible
@Jims-Garage
@Jims-Garage 3 күн бұрын
Will consider it for the future
@dfs-comedy
@dfs-comedy 9 ай бұрын
There's a gitea fork called Forgejo that seems to be more actively maintained.
@Jims-Garage
@Jims-Garage 9 ай бұрын
Thanks, it's on the list
@TwstedTV
@TwstedTV 9 ай бұрын
You forgot to mention that its Linux only. They don't make it for Windows or Mac users. I am a daily Linux user. But remember, most people use Windows as its the most predominate OS in the world right now.
@shlokbhakta2893
@shlokbhakta2893 9 ай бұрын
wat, its a sever side application? @@TwstedTV
@latlov
@latlov Ай бұрын
How about a comparison between Gitea and Gitlab in self-hosted mode or on-premise deployed? Which is better as a github alternative?
@markandrow4010
@markandrow4010 9 ай бұрын
Hi James, GRREAT again, 👍
@Jims-Garage
@Jims-Garage 9 ай бұрын
Thanks 👍
@KosmatyWilczek
@KosmatyWilczek 9 ай бұрын
I was not even aware, this piece of software existed (and it's not first time on your channel). Looks like a good alternative to more comprehensive solutions. Going to check that out. Thank you for the video 😀
@Jims-Garage
@Jims-Garage 9 ай бұрын
You should! Thanks for the comment.
@Pdizzle-ic5sk
@Pdizzle-ic5sk 9 ай бұрын
Can you do a gitlab tutorial??? It is another git repo, but has more devops capabilities. I have successfully set up the docker image and some gitlabrunners. The issue I currently have is connecting the docker image repository.
@Jims-Garage
@Jims-Garage 9 ай бұрын
Will move onto it later down the road
@Pdizzle-ic5sk
@Pdizzle-ic5sk 9 ай бұрын
@@Jims-Garage You are the man! Look forward to it!
@SH-fc7xp
@SH-fc7xp 9 ай бұрын
I found gitlab to be incredibly slow and is why I moved to gitea, Perhaps it's improved since I last used it.
@Jimmy_Jones
@Jimmy_Jones 9 ай бұрын
Yeah. I don't get how the repository works. It's easy in the official version to use. But I just haven't got round to working out how to host it myself.
@colly6022
@colly6022 9 ай бұрын
ive always read the name as "git tea", but assumed it was a pun on the word "giddy".
@namename8986
@namename8986 3 ай бұрын
you should cover ci/cd `runners` also
@rudypieplenbosch6752
@rudypieplenbosch6752 9 ай бұрын
Exactly host it yourself
@DavidC-rt3or
@DavidC-rt3or 9 ай бұрын
Curious is there a specific reason/functionality using gitea vs say self-hosted gitlab? Is there a way to do an automated backup of gitea and the db?
@PeterHonig.
@PeterHonig. 9 ай бұрын
I run Gitea on one of my Synology NAS units, and I am very happy with it, as I am in full control and my data is all private. By the way, I noticed that you are using VS Code. If you are concerned with privacy, why not use VS Codium, which is VS Code recompiled without all the Microsoft telemetry?
@Jims-Garage
@Jims-Garage 9 ай бұрын
It's a good point albeit I'm using Windows 11 so figured what's the point?
@PeterHonig.
@PeterHonig. 9 ай бұрын
@@Jims-Garage Yeah, I see your point: why plug a small leak when the rest of the plumbing is gushing. P.S.: That's why I switched to Linux last year after three decades of using windows.
@Jims-Garage
@Jims-Garage 9 ай бұрын
@@PeterHonig. Nice! Something I've wanted to do for a while but always something holding me back. I use it exclusively for my server estate
@PeterHonig.
@PeterHonig. 9 ай бұрын
@@Jims-Garage I found that making the switch turned out to be far easier than I had ever anticipated. I found replacement applications for just about everything that I had in Windows. Namely, LibreOffice for MS Office, Thunderbird for Outlook, Firefox for Edge, the free version of Master PDF Editor for Adobe Acrobat, KDEnlive for SONY Vegas, Natron for Adobe After Effects, Ardour for Adobe Audition, and many others. My only regret is that I did not have the courage to switch sooner, but since then, I have never looked back. By the way, I do run some Windows apps in Linux Wine or Bottles containers that I need on very rare occasions.
@PeterHonig.
@PeterHonig. 9 ай бұрын
@@Jims-Garage Looks like my last reply got rejected by the YT filter for some reason (perhaps because I mentioned a list of free and open source apps to replace those in Win). Anyway I'll try again with a shorter post: I found that making the switch turned out to be far easier than I had anticipated. I found replacement applications for just about everything that I had in Windows. (List of apps goes here). I wish that I had had the courage to switch sooner, because once I did, I have never looked back. By the way, I do run two Win apps in containers that I need on very rare occasions.
@simo47768
@simo47768 9 ай бұрын
Hi With Kubernetes you kan expose nodeport Or ingress tcp port. Also i think it has to do with traefic. You need to tell traeffic to treat it as tcp (layer4) . Probably traeffic thinks it is http( layer7) What's best way to keep backup in cloud encrypted and restore in case urgently. ?
@morax-666
@morax-666 9 ай бұрын
make sure you read up on Forejo and why they forked Gitea
@Jims-Garage
@Jims-Garage 9 ай бұрын
Thanks, I will be checking it out
@bobmcbob4399
@bobmcbob4399 9 ай бұрын
I have bare repos located within encrypted volumes. And on local PC I have my cloned repos of these same bare repos. When I am done with my series of commits, I git push to my mounted encrypted volumes and it's all backed up easily. What am I missing with local gitea?
@Ne0_Vect0r
@Ne0_Vect0r 9 ай бұрын
Why not selfhost GitLab? / What's better with gitea?
@innesleroux9439
@innesleroux9439 9 ай бұрын
Gitea is light and fast written in Go. Gitlab also great but more for bigger teams / enterprise. Much harder on resources...
@Ozy_Viking
@Ozy_Viking 9 ай бұрын
To get SSH working you need to add the traefik labels for exposing ssh
@niss2142
@niss2142 3 ай бұрын
What?
@fuzzy-02
@fuzzy-02 9 ай бұрын
Maybe its Git + Ikea? As in build it yourself thus Gitea?
@Jims-Garage
@Jims-Garage 9 ай бұрын
Ha, I like the logical thinking
@ZuvielDrama
@ZuvielDrama 9 ай бұрын
does it has something like gitlab workers or github actions?
@Jims-Garage
@Jims-Garage 9 ай бұрын
Yes, I'll be doing a follow up video about it
@ukroyesyo7972
@ukroyesyo7972 3 ай бұрын
how to secure this selfhost gitea? so that nobody on local lan can't download the code?
@r4m3200
@r4m3200 6 ай бұрын
Hello, how to configure gitea for ssh git clone ?
@torspedia
@torspedia 9 ай бұрын
Would this be a good tool to use to host your own static websites?
@Jims-Garage
@Jims-Garage 9 ай бұрын
I don't believe it has hosting capability. Perhaps combined with Hugo it would work
@torspedia
@torspedia 9 ай бұрын
@@Jims-Garagemight be something to experiment with then. 🙂
@theprantadutta
@theprantadutta 9 ай бұрын
what is the difference with this and Gitlab
@JershBytes
@JershBytes 9 ай бұрын
By SSH do you mean cloning via SSH cause I'm using Giea in my lab and I have it working with SSH , I even have Ansible Semaphore hooked up to it. So all the playbook just live in the repo.
@masewyss5988
@masewyss5988 9 ай бұрын
Hi, how did you do the setup @derp0ps? With docker or running as service? I also struggle to make ssh work inside docker gitea.
@johnrushford3803
@johnrushford3803 9 ай бұрын
Do you moderate comments? I've trying commenting several times about Gogs but, my comments seem to disappear.
@Jims-Garage
@Jims-Garage 9 ай бұрын
I don't but I have auto moderation on. It doesn't like links. Try stripping them out and see. Otherwise if it's a problem it's best to hop on Discord
@christian6820
@christian6820 9 ай бұрын
I think it's pronounced like 'git' and 'tea' or 'gitty'
@zenmaster24
@zenmaster24 9 ай бұрын
can you follow up with the cicd options for gitea?
@Jims-Garage
@Jims-Garage 9 ай бұрын
I plan to come back to this later in the series
@PCMagikHomeLab
@PCMagikHomeLab 9 ай бұрын
like always Englishman good job!
@Jims-Garage
@Jims-Garage 9 ай бұрын
Haha, thanks 🙏
@PCMagikHomeLab
@PCMagikHomeLab 9 ай бұрын
It's Your words😋 do You drink tea with milk?@@Jims-Garage
@Jims-Garage
@Jims-Garage 9 ай бұрын
@@PCMagikHomeLab of course!
@PCMagikHomeLab
@PCMagikHomeLab 9 ай бұрын
me to, cheers brother!!@@Jims-Garage
@faust9091
@faust9091 Ай бұрын
You sir know how to present
@Jims-Garage
@Jims-Garage Ай бұрын
Thanks, appreciate the feedback
@AgentZeroNine1
@AgentZeroNine1 9 ай бұрын
Using Gitea but using VSCode is like locking your garage door while leaving your home's front door wide open lol.
@Jims-Garage
@Jims-Garage 9 ай бұрын
I'm using Windows so I figured it doesn't really matter. Do you use iOS, Android, Windows or any other proprietary OS?
@AgentZeroNine1
@AgentZeroNine1 9 ай бұрын
Naturally, but to stay in the context of this video... when it comes to my coding, I use CLI based editors (currently NeoVIM).
@jttech44
@jttech44 9 ай бұрын
Gitea is nice and all, but the free version doesn't allow you to use pull mirrors, which is very, very annoying. You can, of course, just install and use the paid version for free, but that's a pain in the ass.
@Jims-Garage
@Jims-Garage 9 ай бұрын
True, good point.
9 ай бұрын
I think forgejo, a clone of gitea, has this feature enabled for everyone.
@zer0r00t
@zer0r00t 9 ай бұрын
You didn't expose a port for SSH
@Jims-Garage
@Jims-Garage 9 ай бұрын
Thanks for the suggestion. I did it in testing prior to releasing the video.
@moneyluser5711
@moneyluser5711 3 ай бұрын
or just use the git server that comes with git and is trivial to setup and does not all loads of web crap you dont need.
@codeman99-dev
@codeman99-dev 9 ай бұрын
Big miss on that intro. Most users that was a private network git repo do *not* need a UI at all. Just a bare repo on another machine with ssh access. It's no use introducing a tool that is free without mentioning the *reasons* to actually use it. Gitea isn't about "hosting", nor is github, nor is gitlab. They all serve tasks other than code repositories. Why? Because `git` does that without the need for any other tool. P.S. If you said this later... reorganize! This info should be in your intro...
@Jims-Garage
@Jims-Garage 9 ай бұрын
Appreciate that. It will be covered in a follow up video. My theme is to build up on complexity rather than have a huge video that is too much for people to follow.
@lucsoft
@lucsoft 9 ай бұрын
But why is Gitea so ugly per default?
@Jims-Garage
@Jims-Garage 9 ай бұрын
I guess it's subjective. I'm more of a substance over style person regardless.
@RedVelocityTV
@RedVelocityTV 9 ай бұрын
Why are you implying that using Github is insecure and its being snooped?
@Jims-Garage
@Jims-Garage 9 ай бұрын
I'm not, you're inferring that. This is a channel about self hosting so gitea fills that requirement. GitHub is great, I rate it. But having to trust another 3rd party is automatically introducing security/privacy risks, albeit it's often a risk worth taking for productivity.
@RedVelocityTV
@RedVelocityTV 9 ай бұрын
@@Jims-Garage well there's a lot of downsides with self hosting as well. Especially with regards to backup, you eventually have to store it in a remote location or a third party service either way...
@rahulsrma26
@rahulsrma26 9 ай бұрын
@@RedVelocityTVbut you can encrypt your backups before putting it on cloud.
@Jims-Garage
@Jims-Garage 9 ай бұрын
@@RedVelocityTV True, but most people would encrypt their backups to mitigate the risk.
@ThePlayerOfGames
@ThePlayerOfGames 9 ай бұрын
​@@RedVelocityTVif Jim isn't I am, perhaps I'm missing the sarcasm. But Microsoft are snooping your code for their Machine Learning & Sherlocking ability, that is after all why they "love open source".
@carstenr.1682
@carstenr.1682 7 ай бұрын
Hi Jim, Regarding SSH access: I've solved it by using a different SSH port on the host which is then linked to port 22 on the container. ports: - "80:80" - "443:443" - "2022:22" 2nd: In the data/gitea/conf/app.ini file, to enable SSH, I've added in the "server" block: [...] SSH_DOMAIN = gitea. SSH_PORT = 2022 SSH_LISTEN_PORT = %(SSH_PORT)s START_SSH_SERVER = false BUILTIN_SSH_SERVER_USER = %(RUN_USER)s SSH_USER = %(BUILTIN_SSH_SERVER_USER)s 3rd: Go to Gitea WebUI, open user settings and add a SSH Key
@AnythingGodamnit
@AnythingGodamnit 9 ай бұрын
Incredible how much I learnt from just one video. I feel so inadequate as an engineer sometimes 🙈
@Jims-Garage
@Jims-Garage 9 ай бұрын
Don't feel bad, there's too much to learn!
Easily Manage And Search All Of Your Documents - Paperless-NGX
19:48
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 461 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 3,6 МЛН
This Game Is Wild...
00:19
MrBeast
Рет қаралды 138 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 161 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,1 МЛН
Protecting Homelab Apps with BunkerWeb
23:24
Jim's Garage
Рет қаралды 16 М.
I Stopped Using GitHub (Kind Of)
17:19
Theo - t3․gg
Рет қаралды 64 М.
Watchtower - Update Docker Containers Automatically
13:46
Jim's Garage
Рет қаралды 10 М.
Automate Homelab Deployment With Terraform & Proxmox
26:22
Jim's Garage
Рет қаралды 69 М.
Gitea: Easy Self-Hosted Git Repositories!
13:57
apalrd's adventures
Рет қаралды 34 М.
Host Your Own AI Code Assistant with Docker, Ollama and Continue!
17:49
Wolfgang's Channel
Рет қаралды 99 М.
Private Self-Hosted GitHub Server | Gitea Complete Setup Guide
19:10
TroubleChute Linux
Рет қаралды 2,8 М.
I just made my Homelab Open Source!
18:12
Christian Lempa
Рет қаралды 51 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 3,6 МЛН