--- whoami_stack: - name: whoami compose: "{{ lookup('template', 'docker-stack.yml.j2') | from_yaml }}" whoami_upstream: >- '{ "@id": "whoami_upstream", "handle": [{ "handler": "reverse_proxy", "upstreams": [{ "dial": "whoami_app:80"}]}] }'