Simplify Docker service names for Restic

This simplifies containernames such as "restic_backup_restic-backup_1"
to "restic_backup_1".
This commit is contained in:
Sam A. 2023-03-09 17:50:13 +01:00
parent 9cc70decab
commit b1f1db5b30
Signed by untrusted user: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 3 additions and 3 deletions

View File

@ -49,12 +49,12 @@
- name: Setup restic backup - name: Setup restic backup
docker_compose: docker_compose:
project_name: restic_backup project_name: restic
pull: true pull: true
definition: definition:
version: '3.6' version: '3.6'
services: services:
restic-backup: backup:
image: mazzolino/restic:{{ services.restic.version }} image: mazzolino/restic:{{ services.restic.version }}
restart: always restart: always
environment: environment:
@ -77,7 +77,7 @@
- "{{ services.restic.volume_folder }}/ssh:/run/secrets/.ssh:ro" - "{{ services.restic.volume_folder }}/ssh:/run/secrets/.ssh:ro"
- /docker-volumes:/mnt/volumes:ro - /docker-volumes:/mnt/volumes:ro
restic-prune: prune:
image: "mazzolino/restic:{{ services.restic.version }}" image: "mazzolino/restic:{{ services.restic.version }}"
environment: environment:
RUN_ON_STARTUP: "false" RUN_ON_STARTUP: "false"