Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 19760a1bac816276efc46ad52f598531b863140c
  • master par défaut protégée
  • v1.0.3
  • v1.0.2
  • v1.0.1
  • v1.0.0
6 résultats

backup.yaml.j2

Blame
  • backup.yaml.j2 1,65 Kio
    version: "2.1"
    services:
        backup_mattermost:
            image: tecnativa/duplicity:postgres
            hostname: backup-mattermost
            environment:
                DST: "swift://mattermost_{{ inventory_hostname|lower }}"
                PGDATABASE: "{{ mm_db_name }}"
                PGPASSWORD: "{{ mm_db_pass }}"
                PGUSER: "{{ mm_db_user }}"
                PASSPHRASE: "{{ mm_backup_pass | default(mm_db_pass) }}"
                SWIFT_USERNAME: "{{ swift_odoo_username }}"
                SWIFT_PASSWORD: "{{ swift_odoo_password }}"
                SWIFT_AUTHURL: "{{ swift_odoo_authurl }}"
                SWIFT_AUTHVERSION: {{ swift_odoo_authversion }}
                SWIFT_TENANTNAME: "{{ swift_odoo_tenantname }}"
                SWIFT_TENANTID: "{{ swift_odoo_tenantid }}"
                SWIFT_REGIONNAME: "{{ swift_odoo_regionname }}"
                JOB_300_WHAT: "backup --full-if-older-than 6D"
                JOB_302_WHAT: "dup remove-all-but-n-full 5 --force $$DST $$@"
                JOB_302_WHEN: "daily"
            volumes:
                - mattermost_config:/mnt/backup/src/config:z
                - mattermost_data:/mnt/backup/src/data:z
                - mattermost_plugins:/mnt/backup/src/plugins:z
                - mattermost_client-plugins:/mnt/backup/src/client-plugins:z
            networks:
                - mattermost_default
                - public
            command:
                - /etc/periodic/daily/jobrunner
    
    networks:
        mattermost_default:
            external: true
        public:
            driver_opts:
                encrypted: 1
    
    volumes:
        mattermost_config:
            external: true
        mattermost_data:
            external: true
        mattermost_plugins:
            external: true
        mattermost_client-plugins:
            external: true