1
0
Fork 0
myserver-configuration/roles/protonmail/templates/docker-compose.yml.j2

32 lines
808 B
Django/Jinja

version: '3'
services:
protonmail-bridge:
image: shenxn/protonmail-bridge
restart: always
container_name: protonmail-bridge
networks:
- protonmail
volumes:
- protonmail:/root
# BACKUP
backup_protonmail:
image: offen/docker-volume-backup:latest
restart: always
environment:
BACKUP_CRON_EXPRESSION: "{{ server.backup.cron_expression }}"
BACKUP_FILENAME: "{{ server.backup.filename_date_format }}-protonmail.tar.gz"
BACKUP_LATEST_SYMLINK: protonmail.latest.tar.gz
BACKUP_EXCLUDE_REGEXP: "\\.log$$"
BACKUP_RETENTION_DAYS: "{{ server.backup.retention_days }}"
volumes:
- protonmail:/backup:ro
- {{ server.backup.folder }}/protonmail:/archive
volumes:
protonmail:
networks:
protonmail:
external: true