1
0
Fork 0

Migrate home_assistant + n8n + protonmail

This commit is contained in:
Florian RICHER 2023-06-09 00:27:48 +02:00
parent 7fe8837098
commit 669279b4ed
4 changed files with 8 additions and 22 deletions

View file

@ -6,11 +6,11 @@
- { role: docker, tags: ["docker"] }
- { role: ssh, tags: ["ssh"] }
# - { role: traefik, tags: ["traefik"] }
# - { role: whoami, tags: ["whoami"] }
# - { role: protonmail, tags: ["protonmail"] }
- { role: whoami, tags: ["whoami"] }
- { role: protonmail, tags: ["protonmail"] }
# - { role: cloud, tags: ["cloud"] }
# - { role: home_assistant, tags: ["home_assistant"] }
# - { role: n8n, tags: ["n8n"] }
- { role: home_assistant, tags: ["home_assistant"] }
- { role: n8n, tags: ["n8n"] }
# - { role: matrix, tags: ["matrix"] }
# - { role: iptables, tags: ["iptables"] }
# - { role: clean, tags: ["clean"] }

View file

@ -8,7 +8,7 @@ services:
environment:
- TZ=Europe/Paris
volumes:
- home_assistant_config:/config
- {{ server.work_dir }}/home_assistant/base:/config
- /etc/localtime:/etc/localtime:ro
network_mode: host
expose:

View file

@ -8,7 +8,7 @@ services:
networks:
- internal
volumes:
- db:/var/lib/postgresql/data
- {{ server.work_dir }}/n8n/db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=n8n
- POSTGRES_DB=n8n
@ -22,7 +22,7 @@ services:
- internal
- proxy
volumes:
- n8n:/home/node/.n8n
- {{ server.work_dir }}/n8n/base:/home/node/.n8n
labels:
- "traefik.enable=true"
- "traefik.http.routers.n8n-secure.entrypoints=https"

View file

@ -8,21 +8,7 @@ services:
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
- {{ server.work_dir }}/protonmail/base:/root
volumes:
protonmail: