{% include 'roles/docker-compose/templates/base.yml.j2' %}
   application: 
     depends_on:
       - db
     image: apache/syncope:{{ applications | get_app_conf(application_id, 'version', True) }}
     ports:
       - "18080:8080"
     restart: always
{% include 'roles/docker-container/templates/base.yml.j2' %}
     environment:
       SPRING_PROFILES_ACTIVE: docker,postgresql,saml2
       OPENJPA_REMOTE_COMMIT: sjvm
       SERVICE_DISCOVERY_ADDRESS: {{ domains | get_url(application_id, WEB_PROTOCOL) }}/{{syncope_paths[rest]}}/
    # database variablen auslesen

   console: 
     depends_on:
       - syncope
     image: apache/syncope-console:{{ applications | get_app_conf(application_id, 'version', True) }}
     ports:
       - "28080:8080"
     restart: always
     environment:
       SPRING_PROFILES_ACTIVE: docker,saml2
       SERVICE_DISCOVERY_ADDRESS: {{ domains | get_url(application_id, WEB_PROTOCOL) }}/{{syncope_paths[console]}}/

   enduser: 
     depends_on:
       - syncope
     image: apache/syncope-enduser:{{ applications | get_app_conf(application_id, 'version', True) }}
     ports:
       - "38080:8080"
     restart: always
     environment:
       SPRING_PROFILES_ACTIVE: docker,saml2
       SERVICE_DISCOVERY_ADDRESS: {{ domains | get_url(application_id, WEB_PROTOCOL) }}/{{syncope_paths[enduser]}}/

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