implement duplicati
Deploy Containers / Prepare (push) Successful in 5s

This commit is contained in:
2026-05-20 21:04:12 -04:00
parent 0e75f71819
commit ee16b8e7bb
3 changed files with 32 additions and 4 deletions
+3 -3
View File
@@ -85,6 +85,9 @@
- name: Deploy Weatherstar
import_tasks: tasks/media/weatherstar.yml
tags: weatherstar_deploy
- name: Deploy Duplicati
import_tasks: tasks/utility/duplicati.yml
tags: duplicati_deploy
- hosts: jackson
@@ -114,9 +117,6 @@
- name: Deploy Tinyauth
import_tasks: tasks/auth/tinyauth.yml
tags: tinyauth_deploy
- name: Deploy Cobalt
import_tasks: tasks/cobalt.yml
tags: cobalt_deploy
- name: Deploy Postgres
import_tasks: tasks/infra/postgres.yml
tags: postgres_deploy
+1 -1
View File
@@ -83,7 +83,7 @@ def main():
subprocess.run(f"/usr/bin/docker container stop {container_id}", shell=True)
subprocess.run(f"/usr/bin/docker container rm {container_id}", shell=True)
subprocess.run("/usr/bin/docker image prune -af", shell=True)
subprocess.run("/usr/bin/docker container prune -af", shell=True)
subprocess.run("/usr/bin/docker container prune -f", shell=True)
if __name__ == "__main__":
main()
+28
View File
@@ -0,0 +1,28 @@
---
- name: Deploy Duplicati
include_roles:
name: docker
vars:
name: duplicati
networks:
- name: homelab
directories:
- "{{ data_dir }}/duplicati"
- "{{ data_dir }}/duplicati/app"
- "{{ data_dir }}/duplicati/backups"
image:
name: lscr.io/linuxserver/duplicati
tag: latest
volumes:
- "{{ data_dir }}/duplicati/app:/config"
- "{{ data_dir }}/duplicati/backups:/backups"
- "/storage-pool/Share:/source"
env:
TZ: "{{ TZ }}"
SETTINGS_ENCRYPTION_KEY: "{{ DUPLICATI_SETTINGS_ENCRYPTION_KEY }}"
labels:
traefik.enable: "true"
traefik.http.routers.duplicati.rule: Host(`backups.fntz.net`)
traefik.http.routers.duplicati.entrypoints: webSecure
traefik.http.routers.duplicati.tls.certresolver: letsencrypt
traefik.http.services.duplicati.loadbalancer.server.port: "8200"