Self Host Your Own Git Repository With Gitea!!

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024
  • this is probably something i should have done long ago which is to self host my own git repository for personal programs i have written throughout the years, this is so usefule i just can't explain!
    ○○○ LINKS ○○○
    Gitea ► about.gitea.com/
    Raspberry Pi ► amzn.to/3vYUeHs
    ○○○ SHOP ○○○
    Novaspirit Shop ► teespring.com/...
    Amazon Store ► amzn.to/2AYs3dI
    ○○○ SUPPORT ○○○
    💗 Patreon ► goo.gl/xpgbzB
    ○○○ SOCIAL ○○○
    🎮 Twitch ► / novaspirit
    🎮 Pandemic Playground ► / @pandemicplayground
    ▶️ novaspirit tv ► goo.gl/uokXYr
    🎮 Novaspirit Gaming ► / @novaspiritgaming
    🐤 Twitter ► / novaspirittech
    👾 Discord chat ► / discord
    FB Group Novaspirit ► / novasspirittech
    ○○○ Send Me Stuff ○○○
    Don Hui
    PO BOX 765
    Farmingville, NY 11738
    ○○○ Music ○○○
    From Epidemic Sounds
    patreon @ / novaspirittech
    Tweet me: @ / novaspirittech
    facebook: @ / novaspirittech
    Instagram @ / novaspirittech
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission.

Комментарии • 48

  • @DarthDweeb
    @DarthDweeb 7 месяцев назад +4

    I've been using gitea for years. I don't run any code, but it's great for backing up my notes. I have a separate repository set up for each of my directories of notes. And for each project I use the readme for my own little pasebin for common commands. Just go to the repository and copy the commands. It's super convenient.

  • @---nw9qu
    @---nw9qu 7 месяцев назад +2

    Installed Gitea yesterday on a raspberry pi 5 with docker after seeing your video! Really cool!

  • @manemobiili
    @manemobiili 7 месяцев назад +1

    I did this recently and it works very well on a raspberry pi 3.
    I don't have access to my local router so i use tailscale funnel - it's really nice and simple to share when using the latest version.

  • @mohamedh.guelleh630
    @mohamedh.guelleh630 7 месяцев назад +5

    Gitlab also has a self hosted version. Please do a review on how to install and configure it.

  • @sam37io
    @sam37io 7 месяцев назад

    Thanks for introducing this. I set it up 2 weeks ago and I love it.

  • @matthewmichael1273
    @matthewmichael1273 7 месяцев назад +1

    Really like seeing all your testing of different solutions like this. Have you ever tried or know of an open source version of Nessus or other vulnerability scanners for your environment?

  • @cjmoss51
    @cjmoss51 7 месяцев назад +1

    Forejo is a better fork of this project. Gitea's assets were transferred to a for profit company 2 years ago without informing the public and bugfixes have slowed down just like they did with Gogs of which Gitea is a fork of.

    • @modaafoca
      @modaafoca 7 месяцев назад

      I have a "problem" with Forejo. While I may have just enough knowledge to power up Gitea for basic use at TrueNAS using TrueCharts, I don't have it to launch Forejo. But hope the migration process is easy and at the future I may be able to transition.

    • @ShoruKen
      @ShoruKen 7 месяцев назад +1

      Looked into Forejo, and it does seem like a better option than Gitea. Thanks for sharing.

  • @zyghom
    @zyghom 7 месяцев назад +10

    why not just use a gitlab? self hosted I mean. I did. But I am quite surprised how heavy this VM is with all the db etc inside. Still better than public hosting.

    • @g.s.3389
      @g.s.3389 7 месяцев назад +3

      I do the same, I have gitlab on a vm on my esxi at home. than I learned how to upgrade it....ahahaha

    • @zyghom
      @zyghom 7 месяцев назад

      @@g.s.3389 the best about having git is possibility to use different computers to work on the same project. I am completely not using the "work in group" feature but syncing between laptops/workstations is perfect for me

    • @IgnacioCrucesVizurGT
      @IgnacioCrucesVizurGT 7 месяцев назад +3

      Privacy in code

    • @brettholland1687
      @brettholland1687 7 месяцев назад +3

      I also use the community edition of GitLab running in an openSUSE VM on XCP-NG. One of the reasons I prefer GitLab is easy project export/import between GitLab instances. This, with their well-documented API, allowed me to migrate a MacGyver system of manual notes and local git repositories to a temporary GitLab instance. I then cleaned and made adjustments to the projects before export/import to a production GitLab instance.
      And yes, before this GitLab adventure, I did experiment with Gittea and Gogs.

    • @Lunolux
      @Lunolux 7 месяцев назад +2

      sometime, gitlab is too heavy for just saving projet code on git server

  • @iuhere
    @iuhere 7 месяцев назад +1

    in my portainer gitea was not showing and portainer was up to date so had do do some workaround for the docker compose setup. that info i thought was missing from this video otherwise its a ocol setup and i have implemented one myself after your recommendation because i has similar use cases . thank you!

    • @beavermexicano
      @beavermexicano 4 месяца назад +1

      Hi! Would you be so kind and paste your compose yaml? Struggling a bit here

    • @iuhere
      @iuhere 4 месяца назад +1

      @@beavermexicano sure . will do so.
      ```
      version: "3.9"
      services:
      gitea:
      container_name: gitea
      hostname: gitea
      image: gitea/gitea:latest
      environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=mysql
      - GITEA__database__HOST=mariadb:3306
      - GITEA__database__NAME=giteaUsername
      - GITEA__database__USER=giteaDBName
      - GITEA__database__PASSWD=giteaPassword
      restart: unless-stopped
      volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      ports:
      - "8031:3000"
      - "8032:22"
      networks:
      - containers
      networks:
      containers:
      name: containers
      external: true
      ```

    • @iuhere
      @iuhere 4 месяца назад

      @@beavermexicano i think youtube is deleting some comments. did you get the compose.yaml copy ?
      trying again here -
      ```
      version: "3.9"
      services:
      gitea:
      container_name: gitea
      hostname: gitea
      image: gitea/gitea:latest
      environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=mysql
      - GITEA__database__HOST=mariadb:3306
      - GITEA__database__NAME=giteaUsername
      - GITEA__database__USER=giteaDBName
      - GITEA__database__PASSWD=giteaPassword
      restart: unless-stopped
      volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      ports:
      - "8031:3000"
      - "8032:22"
      networks:
      - containers
      networks:
      containers:
      name: containers
      external: true
      ```

    • @iuhere
      @iuhere 4 месяца назад +1

      @@beavermexicano
      ```
      version: "3.9"
      services:
      gitea:
      container_name: gitea
      hostname: gitea
      image: gitea/gitea:latest
      environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=mysql
      - GITEA__database__HOST=mariadb:3306
      - GITEA__database__NAME=giteaUsername
      - GITEA__database__USER=giteaDBName
      - GITEA__database__PASSWD=giteaPassword
      restart: unless-stopped
      volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      ports:
      - "8031:3000"
      - "8032:22"
      networks:
      - containers
      networks:
      containers:
      name: containers
      external: true
      ```

    • @iuhere
      @iuhere 4 месяца назад

      @@beavermexicano
      here you go ...
      version: "3.9"
      services:
      gitea:
      container_name: gitea
      hostname: gitea
      image: gitea/gitea:latest
      environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=mysql
      - GITEA__database__HOST=mariadb:3306
      - GITEA__database__NAME=giteaUsername
      - GITEA__database__USER=giteaDBName
      - GITEA__database__PASSWD=giteaPassword
      restart: unless-stopped
      volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      ports:
      - "8031:3000"
      - "8032:22"
      networks:
      - containers
      networks:
      containers:
      name: containers
      external: true

  • @cernejr
    @cernejr 7 месяцев назад +1

    I just have a local repo and a server repo, I share the folder of the server repo using Windows-sharing or Samba or NFS, etc. What extra functionality would gitea give me over my simple setup?

  • @Lunolux
    @Lunolux 7 месяцев назад

    probably 1 year that i use gitea, great projet

  • @FuzzCheck
    @FuzzCheck 7 месяцев назад

    Hell yeah!

  • @jamirograntsaan2124
    @jamirograntsaan2124 7 месяцев назад +2

    why not just use a private github repo?

    • @IgnacioCrucesVizurGT
      @IgnacioCrucesVizurGT 7 месяцев назад +1

      Privacy

    • @sMadaras
      @sMadaras 7 месяцев назад +3

      Are you sure only you can see the private repo? Cannot be repeated enough time: if a service is free you are the product.

  • @toniabm1210
    @toniabm1210 7 месяцев назад

    Come aggiornare un contenitore gitea all'ultima versione senza perdere il database sqlite ?

    • @iuhere
      @iuhere 4 месяца назад

      you need to create persistant storage for your database. It means your database ( for example mysql data) needs to be mounted to a volume that holds data even if container is recreated.
      Other cleaner way is to use separate containeer for databse and gitea. This way no matter how many times you do what operations to your gitea container your data stays safe in your mysql container.
      Search "persistant mysql storage for dockers" in your search engine to start. That might help more.

  • @dodexsamforna446
    @dodexsamforna446 7 месяцев назад

    First 😂

  • @johnrambo6549
    @johnrambo6549 7 месяцев назад

    I like your videos. but I keep giving you dis-likes cuz of the intro music 😀