moved from docker to kubernetes (k3s) (#14)
Co-authored-by: Márcio Fernandes Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
49
README.md
49
README.md
@@ -2,51 +2,14 @@
|
||||
|
||||
Welcome to public repository of my [Git Server](https://git.limbosolutions.com)
|
||||
|
||||
Using [gitea](https://git.limbosolutions.com/kb/gitea) as git server and [duplicati](https://git.limbosolutions.com/kb/duplicati) for backups.
|
||||
Using [gitea](https://git.limbosolutions.com/kb/gitea) as git server.
|
||||
|
||||
- [Requirements](#requirements)
|
||||
- [Setup](#setup)
|
||||
- [Backup and Restore](#backup-and-restore)
|
||||
- [Duplicati - git job Options](#duplicati---git-job-options)
|
||||
- [Restore Database](#restore-database)
|
||||
- [Git Action](#git-action)
|
||||
- [runners](#runners)
|
||||
- [lxc container - proxmox](#lxc-container---proxmox)
|
||||
- [act tunner](#act-tunner)
|
||||
## gitea helm chart
|
||||
|
||||
## Requirements
|
||||
|
||||
- Docker
|
||||
- Docker Compose
|
||||
- Portainer (optional)
|
||||
|
||||
## Setup
|
||||
|
||||
[Docker Compose File](docker-compose.yaml)
|
||||
|
||||
## Backup and Restore
|
||||
|
||||
Using [custom duplicati image](https://git.limbosolutions.com/kb/duplicati) to daily backups files and database with custom logs for grafana.
|
||||
|
||||
Docker Log.
|
||||
|
||||
--run-script-after=dockerlog
|
||||
|
||||
### Duplicati - git job Options
|
||||
|
||||
Create db dump.
|
||||
|
||||
run-script-before-required:duplicati-mysql-backup
|
||||
|
||||
### Restore Database
|
||||
|
||||
```bash
|
||||
#select a file to import
|
||||
ls /db-dumps
|
||||
#select a file to import
|
||||
DB_FILE= "file name to import"
|
||||
mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
|
||||
#root password (root password is the enviromnent variable ${MYSQL_ROOT_PASSWORD})
|
||||
``` yaml
|
||||
helm repo add gitea-charts https://dl.gitea.com/charts/
|
||||
helm repo update
|
||||
helm upgrade --install gitea gitea-charts/gitea -f ./values.yaml -f ./values.private.yml --namespace=git-limbosolutions-com
|
||||
```
|
||||
|
||||
## Git Action
|
||||
|
||||
Reference in New Issue
Block a user