services:

{% include 'templates/docker/services/redis.yml.j2' %}

{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}

  web:
    image: "attendize_web:{{applications.attendize.version}}"
    ports:
    - "{{ports.localhost.http[application_id]}}:80"
    volumes:
      - .:/usr/share/nginx/html
      - .:/var/www
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
      maildev:
      worker:
    env_file:
      - ./.env
{% include 'templates/docker/container/networks.yml.j2' %}

  worker:
    image: "attendize_worker:{{applications.attendize.version}}"
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
      maildev:
{% include 'templates/docker/container/networks.yml.j2' %}
    volumes:
      - .:/usr/share/nginx/html
      - .:/var/www

{% include 'templates/docker/compose/volumes.yml.j2' %}
  redis:

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