.
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
FROM duplicati/duplicati
|
FROM duplicati/duplicati
|
||||||
RUN apt update && apt install -y default-mysql-client && rm -rf /var/lib/apt/lists/*
|
RUN apt update && apt install -y default-mysql-client && rm -rf /var/lib/apt/lists/*
|
||||||
RUN mkdir duplicati-sqlclient
|
RUN mkdir duplicati-mysqlclient
|
||||||
RUN mkdir duplicati-sqlclient/scripts
|
RUN mkdir duplicati-mysqlclient/scripts
|
||||||
COPY /docker/sqlclient/scripts/* /duplicati-sqlclient/scripts/
|
COPY /docker/mysqlclient/scripts/* /duplicati-mysqlclient/scripts/
|
||||||
|
|
||||||
EXPOSE 8200
|
EXPOSE 8200
|
||||||
@@ -14,11 +14,11 @@ docker build -t duplicati-sqlclient:latest -f docker/sqlclient/Dockerfile .
|
|||||||
|
|
||||||
Images -> Build a new Image -> URL
|
Images -> Build a new Image -> URL
|
||||||
|
|
||||||
**Name:** duplicati-sqlclient:latest
|
**Name:** duplicati-mysqlclient:latest
|
||||||
|
|
||||||
**URL:** https://git.limbosolutions.com/kb/duplicati.git
|
**URL:** https://git.limbosolutions.com/kb/duplicati.git
|
||||||
|
|
||||||
**Dockerfile path:** docker/sqlclient/Dockerfile
|
**Dockerfile path:** docker/mysqlclient/Dockerfile
|
||||||
|
|
||||||
## Run Container
|
## Run Container
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ Images -> Build a new Image -> URL
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
duplicati:
|
duplicati:
|
||||||
image: duplicati-sqlclient
|
image: duplicati-mysqlclient
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_HOST=${MYSQL_HOST}
|
- MYSQL_HOST=${MYSQL_HOST}
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
@@ -7,8 +7,6 @@
|
|||||||
# MYSQL_USER
|
# MYSQL_USER
|
||||||
# MYSQL_PASSWORD
|
# MYSQL_PASSWORD
|
||||||
# MYSQL_DATABASE
|
# MYSQL_DATABASE
|
||||||
# download directly from git
|
|
||||||
# curl https://git.limbosolutions.com/kb/duplicati/raw/branch/main/docker/scripts/backupdb.sh > backupdb.sh | chmod +x backupdb.sh
|
|
||||||
|
|
||||||
#any error must stop execution
|
#any error must stop execution
|
||||||
set -e
|
set -e
|
||||||
Reference in New Issue
Block a user