Add watchtower to ansible

This commit is contained in:
Tobias Reisinger 2023-06-16 13:15:45 +02:00
parent 753682aa86
commit 5908976abc
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
10 changed files with 64 additions and 49 deletions
_ansible/inventory/group_vars/all

View file

@ -1,4 +1,4 @@
compose_default_file:
compose_file_main:
services:
app:
image: "{{ compose.image }}"
@ -13,8 +13,18 @@ compose_default_file:
apps:
external: true
compose_env_file:
compose_file_env:
services:
app:
env_file:
- service.env
compose_file_ports:
services:
app:
ports: "{{ compose.ports }}"
compose_file_volumes:
services:
app:
volumes: "{{ compose.volumes }}"

View file

@ -4,5 +4,10 @@ postgres:
host: db.serguzim.me
port: 5432
mailer:
host: mail.serguzim.me
port: 587
services_path: /opt/services/
caddy_config_path: "{{ (services_path, 'caddy', 'config', 'conf.d') | path_join }}"