.
This commit is contained in:
47
docker/mysqlclient/README.md
Normal file
47
docker/mysqlclient/README.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# Duplicati / mySql Client
|
||||
|
||||
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
|
||||
#Executed on repository root folder
|
||||
docker build -t duplicati-sqlclient:latest -f docker/sqlclient/Dockerfile .
|
||||
```
|
||||
|
||||
### Portainer
|
||||
|
||||
Images -> Build a new Image -> URL
|
||||
|
||||
**Name:** duplicati-mysqlclient:latest
|
||||
|
||||
**URL:** https://git.limbosolutions.com/kb/duplicati.git
|
||||
|
||||
**Dockerfile path:** docker/mysqlclient/Dockerfile
|
||||
|
||||
## Run Container
|
||||
|
||||
### Docker Compose
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
services:
|
||||
duplicati:
|
||||
image: duplicati-mysqlclient
|
||||
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