{% include 'roles/docker-compose/templates/base.yml.j2' %}
  application:
    container_name:  {{ matomo_name }}
{% set container_port = 80 %}
{% include 'roles/docker-container/templates/base.yml.j2' %}
    image: "{{ matomo_image }}:{{ matomo_version }}"
    ports:
      - "127.0.0.1:{{ports.localhost.http[application_id]}}:{{ container_port }}"
    volumes:
      - data:/var/www/html
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
{% include 'roles/docker-container/templates/networks.yml.j2' %}
{% include 'roles/docker-container/templates/healthcheck/tcp.yml.j2' %}
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
  data:
    name: {{ matomo_data }}

{% include 'roles/docker-compose/templates/networks.yml.j2' %}
