diff --git a/roles/web-app-flowise/config/main.yml b/roles/web-app-flowise/config/main.yml index 36468257..9f809cc0 100644 --- a/roles/web-app-flowise/config/main.yml +++ b/roles/web-app-flowise/config/main.yml @@ -8,8 +8,8 @@ features: local_ai: true server: domains: - canonical: - flowise: "flowise.ai.{{ PRIMARY_DOMAIN }}" + canonical: + - "flow.ai.{{ PRIMARY_DOMAIN }}" aliases: [] csp: flags: {} @@ -40,7 +40,7 @@ docker: flowise: backup: no_stop_required: true - image: flowiseai/flowise:latest + image: flowiseai/flowise version: latest name: flowise redis: diff --git a/roles/web-app-flowise/tasks/main.yml b/roles/web-app-flowise/tasks/main.yml index 85df8f53..7a690cf5 100644 --- a/roles/web-app-flowise/tasks/main.yml +++ b/roles/web-app-flowise/tasks/main.yml @@ -23,9 +23,6 @@ - name: "flush handlers of docker compose" meta: flush_handlers -- name: "Include role sys-stk-front-proxy for each UI domain" +- name: "Include role sys-stk-front-proxy for '{{ application_id }}'" include_role: name: sys-stk-front-proxy - vars: - domain: "{{ item.domain }}" - http_port: "{{ item.http_port }}" diff --git a/roles/web-app-flowise/templates/docker-compose.yml.j2 b/roles/web-app-flowise/templates/docker-compose.yml.j2 index d0604629..07d7e83a 100644 --- a/roles/web-app-flowise/templates/docker-compose.yml.j2 +++ b/roles/web-app-flowise/templates/docker-compose.yml.j2 @@ -3,8 +3,6 @@ {% include 'roles/docker-container/templates/base.yml.j2' %} image: {{ FLOWISE_LITELLM_IMAGE }}:{{ FLOWISE_LITELLM_VERSION }} container_name: {{ FLOWISE_LITELLM_CONTAINER }} - depends_on: - - ollama expose: - {{ FLOWISE_LITELLM_PORT }} volumes: diff --git a/roles/web-app-flowise/vars/main.yml b/roles/web-app-flowise/vars/main.yml index 69831d5f..51735e20 100644 --- a/roles/web-app-flowise/vars/main.yml +++ b/roles/web-app-flowise/vars/main.yml @@ -1,5 +1,7 @@ # General -application_id: "web-app-flowise" +application_id: "web-app-flowise" +domain: "{{ domains | get_domain(application_id) }}" +http_port: "{{ ports.localhost.http[application_id] }}" # Flowise # https://flowiseai.com/