mirror of
https://github.com/casjaysdevdocker/gitea
synced 2025-12-15 14:07:01 -05:00
🗃️ Update codebase 🗃️
README.md rootfs/tmp/etc/gitea/app.ini rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/init.d/05-dockerd.sh rootfs/usr/local/etc/docker/init.d/08-gitea.sh
This commit is contained in:
72
README.md
72
README.md
@@ -1,8 +1,34 @@
|
||||
## 👋 Welcome to gitea 🚀
|
||||
## 👋 Welcome to gitea 🚀
|
||||
|
||||
Self-hosted Git service with built-in CI/CD (Gitea Actions), Docker-in-Docker support, and SSH access.
|
||||
|
||||
## Features
|
||||
|
||||
- 🚀 **Latest Gitea** - Auto-downloads latest version on build
|
||||
- 🐳 **Docker-in-Docker** - Run Docker inside the container for CI/CD
|
||||
- ⚙️ **Gitea Actions** - Built-in CI/CD with act_runner (5 parallel runners by default)
|
||||
- 🔐 **SSH Server** - Git operations over SSH (port 22/7833)
|
||||
- 📦 **Package Registry** - Container, NPM, Maven, PyPI, and more
|
||||
- 💾 **SQLite** - Zero-config database (PostgreSQL/MySQL supported)
|
||||
- 🔧 **Easy Configuration** - Environment variable driven setup
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Simple Run (HTTP only)
|
||||
|
||||
```bash
|
||||
docker run -d \
|
||||
--privileged \
|
||||
--name gitea \
|
||||
-p 80:80 \
|
||||
-p 22:22 \
|
||||
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/rootfs/data:/data:z" \
|
||||
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/rootfs/config:/config:z" \
|
||||
casjaysdevdocker/gitea:latest
|
||||
```
|
||||
|
||||
Access Gitea at: `http://localhost`
|
||||
|
||||
Description
|
||||
|
||||
|
||||
## Install my system scripts
|
||||
|
||||
```shell
|
||||
@@ -34,8 +60,34 @@ docker run -d \
|
||||
casjaysdevdocker/gitea:latest
|
||||
```
|
||||
|
||||
## via docker-compose
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `GITEA_EMAIL_CONFIRM` | `false` | Enable email notifications |
|
||||
| `EMAIL_RELAY` | `172.17.0.1` | SMTP relay (Docker host gateway) |
|
||||
| `SERVER_ADMIN` | `administrator@$HOSTNAME` | Admin email address |
|
||||
| `RUNNERS_START` | `5` | Number of parallel CI/CD runners |
|
||||
| `GITEA_HOSTNAME` | `$HOSTNAME` | Gitea server hostname |
|
||||
| `TZ` | `America/New_York` | Timezone |
|
||||
|
||||
### Enable Email Notifications
|
||||
|
||||
```bash
|
||||
docker run -d \
|
||||
--privileged \
|
||||
--name gitea \
|
||||
-e GITEA_EMAIL_CONFIRM=yes \
|
||||
-e EMAIL_RELAY=smtp.gmail.com \
|
||||
-e SERVER_ADMIN=admin@example.com \
|
||||
-p 80:80 -p 22:22 \
|
||||
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/rootfs/data:/data:z" \
|
||||
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/rootfs/config:/config:z" \
|
||||
casjaysdevdocker/gitea:latest
|
||||
```
|
||||
|
||||
## via docker-compose
|
||||
|
||||
```yaml
|
||||
version: "2"
|
||||
services:
|
||||
@@ -65,13 +117,13 @@ OR
|
||||
git clone "https://github.com/casjaysdevdocker/gitea" "$HOME/Projects/github/casjaysdevdocker/gitea"
|
||||
```
|
||||
|
||||
## Build container
|
||||
|
||||
## Build container
|
||||
|
||||
```shell
|
||||
cd "$HOME/Projects/github/casjaysdevdocker/gitea"
|
||||
buildx
|
||||
buildx
|
||||
```
|
||||
|
||||
|
||||
## Authors
|
||||
|
||||
🤖 casjay: [Github](https://github.com/casjay) 🤖
|
||||
|
||||
Reference in New Issue
Block a user