Migrate home_assistant + n8n + protonmail
This commit is contained in:
parent
7fe8837098
commit
669279b4ed
4 changed files with 8 additions and 22 deletions
|
@ -6,11 +6,11 @@
|
||||||
- { role: docker, tags: ["docker"] }
|
- { role: docker, tags: ["docker"] }
|
||||||
- { role: ssh, tags: ["ssh"] }
|
- { role: ssh, tags: ["ssh"] }
|
||||||
# - { role: traefik, tags: ["traefik"] }
|
# - { role: traefik, tags: ["traefik"] }
|
||||||
# - { role: whoami, tags: ["whoami"] }
|
- { role: whoami, tags: ["whoami"] }
|
||||||
# - { role: protonmail, tags: ["protonmail"] }
|
- { role: protonmail, tags: ["protonmail"] }
|
||||||
# - { role: cloud, tags: ["cloud"] }
|
# - { role: cloud, tags: ["cloud"] }
|
||||||
# - { role: home_assistant, tags: ["home_assistant"] }
|
- { role: home_assistant, tags: ["home_assistant"] }
|
||||||
# - { role: n8n, tags: ["n8n"] }
|
- { role: n8n, tags: ["n8n"] }
|
||||||
# - { role: matrix, tags: ["matrix"] }
|
# - { role: matrix, tags: ["matrix"] }
|
||||||
# - { role: iptables, tags: ["iptables"] }
|
# - { role: iptables, tags: ["iptables"] }
|
||||||
# - { role: clean, tags: ["clean"] }
|
# - { role: clean, tags: ["clean"] }
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Paris
|
- TZ=Europe/Paris
|
||||||
volumes:
|
volumes:
|
||||||
- home_assistant_config:/config
|
- {{ server.work_dir }}/home_assistant/base:/config
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
network_mode: host
|
network_mode: host
|
||||||
expose:
|
expose:
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- {{ server.work_dir }}/n8n/db:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=n8n
|
- POSTGRES_PASSWORD=n8n
|
||||||
- POSTGRES_DB=n8n
|
- POSTGRES_DB=n8n
|
||||||
|
@ -22,7 +22,7 @@ services:
|
||||||
- internal
|
- internal
|
||||||
- proxy
|
- proxy
|
||||||
volumes:
|
volumes:
|
||||||
- n8n:/home/node/.n8n
|
- {{ server.work_dir }}/n8n/base:/home/node/.n8n
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.n8n-secure.entrypoints=https"
|
- "traefik.http.routers.n8n-secure.entrypoints=https"
|
||||||
|
|
|
@ -8,21 +8,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- protonmail
|
- protonmail
|
||||||
volumes:
|
volumes:
|
||||||
- protonmail:/root
|
- {{ server.work_dir }}/protonmail/base:/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:
|
volumes:
|
||||||
protonmail:
|
protonmail:
|
||||||
|
|
Loading…
Reference in a new issue