The repo I use to run gitea and caddy all in docker
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
Amelia A 7b69fc32b5
Switch to the new major tag
1 ano atrás
backups Add the backups folder 2 anos atrás
.gitignore Remove the old data folder 2 anos atrás
README.md Remove caddy docker, I'm running elsewhere 2 anos atrás
backup backups now require the git user 2 anos atrás
backup_prune Add checking if we have enough backups 2 anos atrás
docker-compose.yml Switch to the new major tag 1 ano atrás

README.md

Gitea in Gitea

This is how I run gitea.

I do it this way because I prioritize;

  • simplicity
  • minimal maintence
  • portability

Usage

Startup

  1. Install docker
  2. Run with docker-compose up -d --build
  3. Optionally put a webserver in front for ssl, I use caddy

Maintence

Upgrade gitea by changing the version in the docker-compose.yml and running docker-compose pull && docker-compose up -d

Data safety

You can do whatever preferred method to back up the contents of docker volumes to back up the gitea-data folder.

However gitea has their own backup & restore method you should consiter. I have created a backup script to create backups and drop them in the ./backups folder. I use this to run from cron.