Hi there,
I’m trying to backup my vaultwarden data via docker container ttionya/vaultwarden-backup.
I’ve followed the how-to but I have no clue how to handle the volume section.
Could anyone help me configuring the backup container?
Here is my docker-compose.yml
version: '3.8'
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
hostname: bf-srvpwd
restart: always
volumes:
- /share/CACHEDEV1_DATA/Container/vaultwarden/data:/data
environment:
- TZ=Europe/Berlin
- LOG_FILE=/data/vaultwarden.log
- LOG_LEVEL=warn
- WEBSOCKET_ENABLED=true
- WEB_VAULT_ENABLED=true
- ADMIN_TOKEN=***
- SIGNUPS_ALLOWED=false
- DOMAIN=https://pwd.***.de
- ENABLE_DB_WAL=false
- IP_HEADER=X-Real-IP
- USE_SYSLOG=true
- EXTENDED_LOGGING=true
- PASSWORD_HINTS_ALLOWED=false
- REQUIRE_DEVICE_EMAIL=true
- ROCKET_PORT=1080
- WEBSOCKET_PORT=3012
- TEMPLATES_FOLDER=/data/templates
depends_on:
- fail2ban
mac_address: 24:5E:BE:00:00:42
networks:
myBridgeNet:
ipv4_address: 192.168.42.42
vaultwarden-backup:
image: ttionya/vaultwarden-backup:latest
container_name: vaultwarden-backup
restart: always
environment:
- TZ=Europe/Berlin
- CRON=42 * * * *
- BACKUP_KEEP_DAYS=30
- DATA_DIR=/data
- RCLONE_REMOTE_NAME=BitwardenBackup
- RCLONE_REMOTE_DIR=/BitwardenBackup
- ZIP_ENABLE=TRUE
- ZIP_PASSWORD=***
- ZIP_TYPE=7z
- BACKUP_FILE_DATE_SUFFIX=--%Hh%Mm%Ss
volumes:
- /share/CACHEDEV1_DATA/Container/vaultwarden/data:/data
- /share/CACHEDEV1_DATA/Container/vaultwarden-backup/config:/config
- /share/CACHEDEV1_DATA/.zzz-backup/vaultwarden:/BitwardenBackup
networks:
myBridgeNet:
driver: qnet
driver_opts:
iface: "eth2"
ipam:
driver: qnet
options:
iface: "eth2"
config:
- subnet: 192.168.42.0/24
gateway: 192.168.42.254