Add Files

This commit is contained in:
2025-06-05 13:56:57 +05:30
parent a6e2e53a1d
commit 5ad09a69de
49 changed files with 1058 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
version: "3.8"
services:
duplicati:
image: "linuxserver/duplicati:2.1.0"
container_name: "duplicati"
environment:
- "PUID=${PUID}"
- "PGID=${PGID}"
- "TZ=${TZ}"
volumes:
- "${CONFIG_PATH}:/config"
- "${SOURCE_PATH}:/source"
- "${BACKUP_PATH}:/backups"
- "${SCRIPTS_PATH}:/scripts"
- "/var/run/docker.sock:/var/run/docker.sock"
- "/usr/bin/docker:/usr/bin/docker"
ports:
- "${PORT}:8200"
restart: "unless-stopped"

6
duplicati/readme.md Normal file
View File

@@ -0,0 +1,6 @@
## Duplicati Scripts:
Add scripts to backup jobs for stoping and starting docker containers
* run-script-before - /scripts/stop-containers.sh
* run-script-after - /scripts/start-containers.sh

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Start Database Containers and Dependant Containers
docker start db_container db_container_2
# Sleep for 10 sec for Database Containers and Dependant Containers startup
sleep 10
# Start Server Containers and Other Containers
docker start container container_2

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Stop Server Containers and Other Containers
docker stop container container_2
# Sleep for 10 sec for Server Containers and Other Containers to stop
sleep 10
# Stop Database Containers and Dependant Containers
docker stop db_container db_container_2