mirror of
https://github.com/casjaysdevdocker/gitea
synced 2026-05-24 15:28:44 -04:00
8f8cb303f9ffe88ed26bda3e190ff6d8d41e3e84
Some checks failed
release-tag / release-image (push) Has been cancelled
Update the embedded entrypoint copies in rootfs/ to match the upstream template change. Internal state files renamed to dotfiles so they're not matched by `/run/*.pid` cleanup globs: - /run/init.d/entrypoint.pid -> /run/.entrypoint.pid - /run/no_exit.pid -> /run/.no_exit.pid - /run/backup.pid -> /run/.backup.pid - /run/__start_init_scripts.pid -> /run/.start_init_scripts.pid Per-service PIDs in /run/init.d/ are unchanged. rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/functions/entrypoint.sh rootfs/usr/local/etc/docker/init.d/05-dockerd.sh rootfs/usr/local/etc/docker/init.d/08-gitea.sh rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
👋 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)
docker run -d \
--privileged \
--name gitea \
-p 80:80 \
-p 22:22 \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/volumes/data:/data:z" \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/volumes/config:/config:z" \
casjaysdevdocker/gitea:latest
Access Gitea at: http://localhost
Install my system scripts
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
Automatic install/update
dockermgr update gitea
Install and run container
mkdir -p "$HOME/.local/share/srv/docker/gitea/volumes"
git clone "https://github.com/dockermgr/gitea" "$HOME/.local/share/CasjaysDev/dockermgr/gitea"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/gitea/rootfs/." "$HOME/.local/share/srv/docker/gitea/volumes/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-gitea \
--hostname gitea \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/volumes/data:/data:z" \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/volumes/config:/config:z" \
-p 80:80 \
casjaysdevdocker/gitea:latest
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
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/volumes/data:/data:z" \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/volumes/config:/config:z" \
casjaysdevdocker/gitea:latest
via docker-compose
version: "2"
services:
ProjectName:
image: casjaysdevdocker/gitea
container_name: casjaysdevdocker-gitea
environment:
- TZ=America/New_York
- HOSTNAME=gitea
volumes:
- "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/volumes/data:/data:z"
- "$HOME/.local/share/srv/docker/casjaysdevdocker-gitea/volumes/config:/config:z"
ports:
- 80:80
restart: always
Get source files
dockermgr download src casjaysdevdocker/gitea
OR
git clone "https://github.com/casjaysdevdocker/gitea" "$HOME/Projects/github/casjaysdevdocker/gitea"
Build container
cd "$HOME/Projects/github/casjaysdevdocker/gitea"
buildx
Authors
Description
Languages
Shell
95.7%
Dockerfile
4.3%