Compare commits
2 Commits
2b252641fe
...
01fb09e12d
| Author | SHA1 | Date | |
|---|---|---|---|
| 01fb09e12d | |||
| 018e96fd8f |
29
README.md
29
README.md
@@ -2,18 +2,31 @@
|
|||||||
|
|
||||||
Welcome to public repository of my [Git Server](https://git.limbosolutions.com)
|
Welcome to public repository of my [Git Server](https://git.limbosolutions.com)
|
||||||
|
|
||||||
## Setup
|
Using [gitea](https://git.limbosolutions.com/kb/gitea) and [duplicati](https://git.limbosolutions.com/kb/duplicati) for backups.
|
||||||
|
|
||||||
Setup assumes no access to the host except through Portainer.
|
## Requirements
|
||||||
|
|
||||||
This demonstrates that access to docker is the only real requirement to host git.limbosolutions.com
|
|
||||||
|
|
||||||
_[Docker Compose File](docker-compose.yaml)_
|
|
||||||
|
|
||||||
### Requirements
|
|
||||||
|
|
||||||
- Docker
|
- Docker
|
||||||
_Currently hosted on an ubuntu lxc container with docker and portainer [+ information](https://git.limbosolutions.com/kb/lxc)._
|
_Currently hosted on an ubuntu lxc container with docker and portainer [+ information](https://git.limbosolutions.com/kb/lxc)._
|
||||||
|
|
||||||
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
|
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
[Docker Compose File](docker-compose.yaml)
|
||||||
|
|
||||||
|
## Backup & Restore
|
||||||
|
|
||||||
|
Using [duplicati](https://git.limbosolutions.com/kb/duplicati) to daily backups of files and databases.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
#enter root password (root password is in enviromnent variable ${MYSQL_ROOT_PASSWORD})
|
||||||
|
```
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ services:
|
|||||||
- db:/var/lib/mysql
|
- db:/var/lib/mysql
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- db-dumps:/db-dumps
|
- db-dumps:/db-dumps:ro
|
||||||
duplicati:
|
duplicati:
|
||||||
image: duplicati-mysqlclient #https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient
|
image: duplicati-mysqlclient #https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user