@@ -3,33 +3,29 @@ services:
33 image : ghcr.io/borgmatic-collective/borgmatic
44 container_name : borgmatic
55 volumes :
6- # Sao lưu các thư mục EasyEngine và Docker
7- - ${VOLUME_EE_SOURCE}:/mnt/source/easyengine:ro
8- - ${VOLUME_DOCKER_VOLUMES}:/mnt/source/volumes:ro
9- - ${VOLUME_BORGMATIC_CONFIG_SOURCE}:/mnt/source/borgmatic:ro
10- - ${VOLUME_FAIL2BAN_CONFIG_SOURCE}:/mnt/source/fail2ban:ro
11- - ${VOLUME_CRONTAB_SOURCE}:/mnt/source/crontab:ro
12- # Thư mục khôi phục
13- - ${VOLUME_RESTORE_DESTINATION}:/restore
14- # Các thư mục quản lý Borg
15- - ${VOLUME_BORG_REPOSITORY}:/mnt/borg-repository
16- - ${VOLUME_ETC_BORGMATIC}:/etc/borgmatic.d/
17- - ${VOLUME_BORG_CONFIG}:/root/.config/borg
18- - ${VOLUME_SSH}:/root/.ssh
19- - ${VOLUME_BORG_CACHE}:/root/.cache/borg
20- # Đồng bộ múi giờ
21- - /etc/localtime:/etc/localtime:ro
22- - /etc/timezone:/etc/timezone:ro
6+ - ${VOLUME_EE_SOURCE}:/mnt/source/easyengine:ro # Backup EasyEngine directories
7+ - ${VOLUME_DOCKER_VOLUMES}:/mnt/source/volumes:ro # Backup Docker volumes
8+ - ${VOLUME_BORGMATIC_CONFIG_SOURCE}:/mnt/source/borgmatic:ro # Backup Borgmatic config
9+ - ${VOLUME_FAIL2BAN_CONFIG_SOURCE}:/mnt/source/fail2ban:ro # Backup Fail2Ban config
10+ - ${VOLUME_CRONTAB_SOURCE}:/mnt/source/crontab:ro # Backup Crontab files
11+ - ${VOLUME_RESTORE_DESTINATION}:/restore # Restore destination directory
12+ - ${VOLUME_BORG_REPOSITORY}:/mnt/borg-repository # Borg repository management
13+ - ${VOLUME_ETC_BORGMATIC}:/etc/borgmatic.d/ # Borgmatic configuration directory
14+ - ${VOLUME_BORG_CONFIG}:/root/.config/borg # Borg client configuration
15+ - ${VOLUME_SSH}:/root/.ssh # SSH keys for remote access
16+ - ${VOLUME_BORG_CACHE}:/root/.cache/borg # Borg cache directory
17+ - /etc/localtime:/etc/localtime:ro # Sync timezone
18+ - /etc/timezone:/etc/timezone:ro # Sync timezone
2319 environment :
24- - TZ=${TZ}
25- - BORG_PASSPHRASE=${BORG_PASSPHRASE}
26- - HOST_NAME =${HOST_NAME}
27- - BORGBASE_REPO_PATH=${BORGBASE_REPO_PATH}
28- - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
20+ - TZ=${TZ} # Set timezone
21+ - BORG_PASSPHRASE=${BORG_PASSPHRASE} # Borg repository passphrase
22+ - HOSTNAME =${HOSTNAME} # Get Hostname of host
23+ - BORGBASE_REPO_PATH=${BORGBASE_REPO_PATH} # Path to BorgBase repository
24+ - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} # MariaDB root password for backups
2925 networks :
3026 global-backend-network :
3127
3228networks :
3329 global-backend-network :
34- external : true
35- name : ee-global-backend-network
30+ external : true # Connects to EasyEngine's backend network
31+ name : ee-global-backend-network # Name of the external network for EasyEngine services
0 commit comments