How to Install Gitea in an LXC Container on Ubuntu 24 04 & Change Port to 80
Автор: Lalatendu Swain
Загружено: 2025-02-25
Просмотров: 179
Описание:
How to Install Gitea in an LXC Container on Ubuntu 24.04 & Change Port to 80
Hey everyone! In this video, I’ll walk you through installing Gitea inside an LXC container on Ubuntu 24.04 and show you how to change its default port from 3000 to 80 for easier access. If you're a DevOps enthusiast, self-hosting fan, or working on private Git hosting, this tutorial is for you!
🔹 Steps Covered in This Video:
✅ Create an LXC container running Ubuntu 24.04
✅ Enter the container and install dependencies
✅ Clone and run an automated script to install Gitea
✅ Find the private IP of the container
✅ Modify the Gitea configuration to use port 80 instead of 3000
✅ Allow a non-root user to bind to port 80
✅ Restart Gitea and verify that it’s working
✅ Access Gitea from a web browser
📌Commands Used in This Video📌
lxc launch ubuntu:24.04 gitea-container
lxc exec gitea-container -- bash
git clone https://github.com/Lalatenduswain/ins...
cd install-gitea
chmod +x install-gitea.sh
sudo ./install-gitea.sh
ip a
nano /etc/gitea/app.ini
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/gitea
sudo systemctl restart gitea
ss -tlnp | grep gitea
⚡ Watch the full video and follow along to set up your own self-hosted Git service!
📌 🔗 Helpful Links:
🔗 Gitea Official Documentation: [https://docs.gitea.com](https://docs.gitea.com)
🔗 LXC/LXD Documentation: [https://linuxcontainers.org](https://linuxcontainers.org)
🔗 GitHub Repo (Gitea Install Script): [https://github.com/Lalatenduswain/ins...](https://github.com/Lalatenduswain/ins...)
💬 Got questions or need help? Drop a comment below, and I’ll be happy to assist!
🔥 If this video helped you, don’t forget to:
👍 Like this video
📌 Subscribe for more tech & DevOps tutorials
🔔 Turn on notifications so you never miss an update!
🎬 Thanks for watching! See you in the next video. 🚀
#Gitea #LXC #SelfHosting #Ubuntu #DevOps #GitServer #LinuxContainers #GiteaSetup #CloudComputing #HomeLab
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: