infrastructure/inventory/group_vars/all/compose_defaults.yml

39 lines
790 B
YAML
Raw Permalink Normal View History

2024-09-26 22:02:36 +00:00
compose_file_main:
services:
app:
image: "{{ compose.image }}"
restart: always
labels:
com.centurylinklabs.watchtower.enable: "{{ compose.watchtower | default('') == 'update' }}"
com.centurylinklabs.watchtower.monitor-only: "{{ compose.watchtower | default('') == 'monitor' }}"
2024-09-26 22:02:36 +00:00
compose_file_env:
services:
app:
env_file:
- service.env
compose_file_networks:
services:
app:
networks:
default:
apps:
aliases:
2024-10-13 19:48:04 +00:00
- "{{ role_name }}"
2024-09-26 22:02:36 +00:00
networks:
default:
apps:
external: true
compose_file_volumes:
services:
app:
volumes: "{{ compose.volumes }}"
compose_file_monitoring_label:
services:
app:
labels:
com.influxdata.telegraf.enable: true