add gitea docker install
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Gitea
|
||||
|
||||
- [Gitea](#gitea)
|
||||
- [Gitea on Docker](#gitea-on-docker)
|
||||
- [Gitea on Rootless Podman](#gitea-on-rootless-podman)
|
||||
- [A note on directories](#a-note-on-directories)
|
||||
- [Create the gitea user](#create-the-gitea-user)
|
||||
@@ -14,6 +15,20 @@
|
||||
- [Cache Cleanup](#cache-cleanup)
|
||||
- [Email Notifications](#email-notifications)
|
||||
|
||||
## Gitea on Docker
|
||||
|
||||
<https://docs.gitea.com/installation/install-with-docker>
|
||||
|
||||
Prereqs
|
||||
|
||||
1. Mount data dirs at `/srv/gitea-data` and `/srv/gitea-db`
|
||||
2. Create a gitea user and update gitea-compose.yaml with the correct UID
|
||||
|
||||
```bash
|
||||
scp active/podman_gitea/gitea-compose.yaml gitea:
|
||||
docker compose -f gitea-compose.yaml up -d
|
||||
```
|
||||
|
||||
## Gitea on Rootless Podman
|
||||
|
||||
### A note on directories
|
||||
@@ -141,8 +156,6 @@ you have.
|
||||
### Install
|
||||
|
||||
```bash
|
||||
touch config.yaml
|
||||
|
||||
export GITEA_TOKEN=
|
||||
docker run \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
@@ -197,6 +210,10 @@ docker builder prune -a
|
||||
|
||||
To run it every day at noon: `crontab -e`
|
||||
|
||||
```bash
|
||||
dnf install cronie cronie-anacron
|
||||
```
|
||||
|
||||
```bash
|
||||
0 12 * * * yes | docker builder prune -a
|
||||
0 12 * * * docker image prune -a -f
|
||||
|
||||
Reference in New Issue
Block a user