feat: add backups feature
This commit is contained in:
@@ -40,3 +40,13 @@ PANEL_WEBHOOK_SECRET=change_me
|
||||
# Pangolin/Newt and Docker network ranges that may set X-Forwarded-For.
|
||||
TRUSTED_PROXIES=127.0.0.1,::1,172.16.0.0/12
|
||||
|
||||
# Periodic backups from the worker container. Disabled by default.
|
||||
BACKUP_ENABLED=False
|
||||
BACKUP_CHAT_ID=
|
||||
BACKUP_INTERVAL_SECONDS=3600
|
||||
BACKUP_LOCAL_RETENTION=100
|
||||
BACKUP_ARCHIVE_SIGNATURE_REQUIRED=True
|
||||
BACKUP_ARCHIVE_SIGNATURE_SECRET=
|
||||
BACKUP_COMPOSE_ENABLED=True
|
||||
COMPOSE_BACKUP_SOURCE=.
|
||||
COMPOSE_RESTORE_MODE=rw
|
||||
|
||||
@@ -67,6 +67,7 @@ services:
|
||||
TRUSTED_PROXIES: ${TRUSTED_PROXIES:-127.0.0.1,::1,172.16.0.0/12}
|
||||
volumes:
|
||||
- shop-data:/app/data
|
||||
- ${COMPOSE_BACKUP_SOURCE:-.}:/app/compose-source:${COMPOSE_RESTORE_MODE:-rw}
|
||||
networks:
|
||||
- remnawave-shop
|
||||
depends_on:
|
||||
@@ -91,6 +92,7 @@ services:
|
||||
<<: *app_environment
|
||||
volumes:
|
||||
- shop-data:/app/data
|
||||
- ${COMPOSE_BACKUP_SOURCE:-.}:/app/compose-source:ro
|
||||
networks:
|
||||
- remnawave-shop
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user