This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
services/_ansible/inventory/group_vars/all/compose_defaults.yml

37 lines
671 B
YAML

compose_file_main:
services:
app:
image: "{{ compose.image }}"
restart: always
labels:
com.centurylinklabs.watchtower.enable: "{{ compose.watchtower | default(false) }}"
networks:
local-net:
apps:
aliases:
- "{{ svc.name }}"
networks:
local-net:
apps:
external: true
compose_file_env:
services:
app:
env_file:
- service.env
compose_file_user:
services:
app:
user: "{{ compose.user }}"
compose_file_ports:
services:
app:
ports: "{{ compose.ports }}"
compose_file_volumes:
services:
app:
volumes: "{{ compose.volumes }}"