git clone [email protected]:rboonzaijer/gitea-docker.git
cd gitea-docker
Make each '{file}.sh' file executable
chmod +x *.sh
docker compose up -d
Navigate to: http://localhost:3000
- SSH Server Port: 222
- Check: Enable Update Checker
- Server and Third-Party Service Settings > Enable Local Mode (+ Disable Gravater)
- Server and Third-Party Service Settings > Disable Self-Registration
- Server and Third-Party Service Settings > Require Sign-In to View Pages
- Administrator Account Settings > (create account)
Click: Install Gitea
http://localhost:3000/user/settings/appearance
- Language: English
( now upload your SSH keys and try out a git clone with http and SSL )
This will shut down the container, create backups from the volumes, and then run the container again:
./volumes_backup.sh
# or
./volumes_backup.sh ./../my_backup_dir/
This will shut down the container, restore (overwrite!) the backup files into the volumes, and start the container again.
./volumes_restore.sh
# or
./volumes_restore.sh ./../my_backup_dir/
Create a 'backup_gitea.sh' file in your home directory, with this content:
cd /home/roel/gitea-docker && ./volumes_backup.sh /mnt/nas_gitea/
Make it executable:
chmod +x backup_gitea.sh
Run backup script every day at 05:00 AM
sudo crontab -e
0 5 * * * /home/roel/gitea-docker/backup_gitea.sh
Run it directly with:
./backup_gitea.sh
First, set the new version number in 'docker-compose.yml'. Check the latest version number here: https://dl.gitea.com/gitea/version.json
Then run:
docker compose pull && docker compose up -d --remove-orphans
You might want to remove old images, show all images with docker images
To remove an old unused image:
docker rmi gitea/gitea:1.19.0