.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
# Duplicati / mySql Client
|
||||
|
||||
## Build
|
||||
Using option run-script-before-required on duplicati job set value to /duplicati-mysqlclient/scripts/backupdb.sh.
|
||||
And job will create a database dump configured using docker environment variables
|
||||
|
||||
## Build Image
|
||||
|
||||
```bash
|
||||
#example where docker root folder build command is the git repository root folder
|
||||
docker build -t duplicati-sqlclient:latest -f ./docker/sqlclient/Dockerfile .
|
||||
#Executed on repository root folder
|
||||
#docker build -t duplicati-sqlclient:latest -f docker/sqlclient/Dockerfile .
|
||||
```
|
||||
|
||||
### Portainer
|
||||
@@ -13,9 +16,34 @@ Images -> Build a new Image -> URL
|
||||
|
||||
**Name**:duplicati-sqlclient:latest
|
||||
|
||||
|
||||
**URL:**
|
||||
https://git.limbosolutions.com/kb/duplicati.git
|
||||
|
||||
**Dockerfile path:**
|
||||
/docker/sqlclient/Dockerfile
|
||||
/docker/sqlclient/Dockerfile
|
||||
|
||||
## Run Container
|
||||
|
||||
### Docker Compose
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
services:
|
||||
duplicati:
|
||||
image: duplicati-sqlclient
|
||||
environment:
|
||||
- MYSQL_HOST=${MYSQL_HOST}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- DESTINATION=/db-dumps
|
||||
volumes:
|
||||
- duplicati-data:/data
|
||||
- db-dumps:/db-dumps
|
||||
ports:
|
||||
- 8200:8200
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
duplicati-data:
|
||||
db-dumps:
|
||||
````
|
||||
|
||||
Reference in New Issue
Block a user