Solved ollama network bug

This commit is contained in:
2025-09-23 02:21:20 +02:00
parent 9d8e06015f
commit 3e6193ffce
2 changed files with 8 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ networks:
ipam: ipam:
driver: default driver: default
config: config:
- subnet: {{networks.local[application_id].subnet}} - subnet: {{ networks.local[application_id].subnet }}
{% endif %} {% endif %}
{% endif %} {% endif %}
{{ "\n" }} {{ "\n" }}

View File

@@ -1,5 +1,6 @@
{# This template needs to be included in docker-compose.yml containers #} {# This template needs to be included in docker-compose.yml containers #}
networks: networks:
{# Central RDMS-Database Network #}
{% if {% if
(applications | get_app_conf(application_id, 'features.central_database', False) and database_type is defined) or (applications | get_app_conf(application_id, 'features.central_database', False) and database_type is defined) or
application_id in ['svc-db-mariadb','svc-db-postgres'] application_id in ['svc-db-mariadb','svc-db-postgres']
@@ -10,10 +11,15 @@
- {{ database_type }} - {{ database_type }}
{% endif %} {% endif %}
{% endif %} {% endif %}
{# Central LDAP Network #}
{% if applications | get_app_conf(application_id, 'features.ldap', False) and applications | get_app_conf('svc-db-openldap', 'network.docker') %} {% if applications | get_app_conf(application_id, 'features.ldap', False) and applications | get_app_conf('svc-db-openldap', 'network.docker') %}
{{ applications | get_app_conf('svc-db-openldap', 'docker.network') }}: {{ applications | get_app_conf('svc-db-openldap', 'docker.network') }}:
{% endif %} {% endif %}
{% if application_id != 'svc-db-openldap' %} {# Central AI Network #}
{% if applications | get_app_conf(application_id, 'features.local_ai', False) %}
{{ applications | get_app_conf('svc-ai-ollama', 'docker.network') }}:
{% endif %}
{% if not application_id.startswith('svc-db-') and not application_id.startswith('svc-ai-') %}
default: default:
{% endif %} {% endif %}
{{ "\n" }} {{ "\n" }}