.
This commit is contained in:
30
docker/duplicati-docker-compose.yaml
Normal file
30
docker/duplicati-docker-compose.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
version: "3"
|
||||
services:
|
||||
duplicati:
|
||||
image: duplicati-sqlclient # requirement https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/sqlclient.dockerfile
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- DB_NAME=${DB_NAME}
|
||||
- DB_USER=${DB_USER}
|
||||
- DB_PASSWORD=${DB_PASSWORD}
|
||||
- DB_TARGETFOLDER=/git/db-dumps
|
||||
volumes:
|
||||
- duplicati-data:/data
|
||||
- duplicati-data:/git/duplicati-data:ro
|
||||
- data:/git/data:ro
|
||||
- db:/git/db:ro
|
||||
- db-dumps:/git/db-dumps
|
||||
ports:
|
||||
- 8200:8200
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
duplicati-data:
|
||||
data:
|
||||
name: ${GITEA_APP_VOLUMES_DATA_NAME}
|
||||
db:
|
||||
name: ${GITEA_DB_VOLUMES_DATA_NAME}
|
||||
db-dumps:
|
||||
name: ${GITEA_DB_VOLUMES_DB-DUMPS_NAME}
|
||||
networks:
|
||||
gitea:
|
||||
name: ${GITEA_NETWORK_NAME}
|
||||
@@ -16,6 +16,8 @@ services:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- ${HTTP_PORT}:80
|
||||
networks:
|
||||
- gitea
|
||||
db:
|
||||
image: mysql:8
|
||||
restart: always
|
||||
@@ -29,25 +31,15 @@ services:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- db-dumps:/db-dumps
|
||||
duplicati:
|
||||
image: duplicati-sqlclient # requirement https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/sqlclient.dockerfile
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- DB_NAME=${DB_NAME}
|
||||
- DB_USER=${DB_USER}
|
||||
- DB_PASSWORD=${DB_PASSWORD}
|
||||
- DB_TARGETFOLDER=/git/db-dumps
|
||||
volumes:
|
||||
- duplicati-data:/data
|
||||
- duplicati-data:/git/duplicati-data:ro
|
||||
- data:/git/data:ro
|
||||
- db:/git/db:ro
|
||||
- db-dumps:/git/db-dumps
|
||||
ports:
|
||||
- 8200:8200
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
data:
|
||||
name: ${GITEA_APP_VOLUMES_DATA_NAME}
|
||||
db:
|
||||
name: ${GITEA_DB_VOLUMES_DATA_NAME}
|
||||
db-dumps:
|
||||
duplicati-data:
|
||||
name: ${GITEA_DB_VOLUMES_DB-DUMPS_NAME}
|
||||
networks:
|
||||
gitea:
|
||||
name: ${GITEA_NETWORK_DEFAULT_NAME}
|
||||
@@ -11,12 +11,38 @@ _Currently hosted on an ubuntu lxc container with docker and portainer [+ inform
|
||||
### Services (Stacks)
|
||||
|
||||
If portainer installed use portainer (http://githost:9000) to setup/manage services
|
||||
Stacks:
|
||||
|
||||
- Stack Name: gitea
|
||||
_[Docker Compose](../docker/docker-compose.yaml)_
|
||||
Required environment variables (.env):
|
||||
|
||||
Access duplicati (http://ipaddress:8200) and set a password
|
||||
```bash
|
||||
GITEA_APP_VOLUMES_DATA_NAME=gitea_app_data
|
||||
GITEA_DB_VOLUMES_DATA_NAME=gitea_db_data
|
||||
GITEA_DB_VOLUMES_DB-DUMPS_NAME=gitea_db-dumps
|
||||
GITEA_NETWORK_DEFAULT_NAME=gitea_default
|
||||
DB_NAME=??
|
||||
DB_USER=??
|
||||
DB_PASSWORD=??
|
||||
DB_ROOT_PASSWORD=??
|
||||
HTTP_PORT=???
|
||||
```
|
||||
|
||||
#### Gitea
|
||||
|
||||
_[Docker Compose File](../docker/gitea-docker-compose.yaml)_
|
||||
|
||||
#### Duplicati
|
||||
|
||||
_[Docker Compose File](../docker/dupliticati-docker-compose.yaml)_
|
||||
|
||||
After starting stack:
|
||||
|
||||
- Access duplicati (http://ipaddress:8200) and set a password
|
||||
|
||||
##### Requirements
|
||||
|
||||
- Duplicati Container with mySql client
|
||||
- [Dockerfile](htpp://missinggiturl)
|
||||
- [Git](https://git.limbosolutions.com/kb/duplicati)
|
||||
|
||||
## Restore
|
||||
|
||||
@@ -34,7 +60,7 @@ Access duplicati (http://ipaddress:8200) and set a password
|
||||
1) Import Backup job (if not possible next steps must be adapted)
|
||||
- Restore with permissions checked
|
||||
- All Imported jobs schedules must be disabled (or disable write permissions on backup host)
|
||||
- Remove references to scripts (example:run-script-before-required, /data/myScripts/backupdb.sh)
|
||||
- (step not required after this migration) Remove references to scripts (example:run-script-before-required, /data/myScripts/backupdb.sh)
|
||||
1) Recreate duplicati local database (home-> backup-> advanced-> database-> Recreate (delete and repair))
|
||||
1) Restore all files to original location
|
||||
- If database engine is diferent do not restore db_data and check restore database **before next steps**
|
||||
|
||||
Reference in New Issue
Block a user