Konflikte geloest: open_webui uebernimmt die origin-Branding-Struktur (files/theme + files/favicon, open_webui_theme_dir/favicon_mounts), meine Deep-Research-Pipe/-Tasks und der /app/build/favicon.png-Mount bleiben erhalten; files/branding-Duplikate entfernt. Link-Check OK (292 Links), beide Playbooks syntax-ok. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
52 lines
2.5 KiB
Django/Jinja
52 lines
2.5 KiB
Django/Jinja
[Unit]
|
|
Description=OpenWebUI chat frontend for the Production LLM engine ({{ open_webui_image_tag }})
|
|
Wants={{ open_webui_network_name }}-network.service {{ open_webui_egress_network_name }}-network.service
|
|
After={{ open_webui_network_name }}-network.service {{ open_webui_egress_network_name }}-network.service
|
|
|
|
[Container]
|
|
Image={{ open_webui_image_ref }}
|
|
Pull=never
|
|
ContainerName={{ open_webui_unit_prefix }}
|
|
Network={{ open_webui_network_name }}
|
|
Network={{ open_webui_egress_network_name }}
|
|
PublishPort={{ open_webui_host_addr }}:{{ open_webui_host_port }}:{{ open_webui_container_port }}
|
|
Volume={{ open_webui_data_dir }}:/app/backend/data:rw
|
|
# GNMON theme (GNAI-021): read-only single-file mount over the image's empty
|
|
# custom.css placeholder. Survives image updates — the mount lives host-side
|
|
# in this quadlet, and OpenWebUI's startup static re-copy cannot unlink or
|
|
# overwrite a read-only bind-mounted file.
|
|
Volume={{ open_webui_theme_dir }}/{{ open_webui_theme_file }}:{{ open_webui_theme_container_path }}:ro
|
|
# Favicon (GNAI-021): original ghost, same read-only single-file mount pattern
|
|
# over the image's static favicon files (app.html references all of them).
|
|
{% for m in open_webui_favicon_mounts %}
|
|
Volume={{ open_webui_favicon_dir }}/{{ m.host_file }}:{{ m.container_path }}:ro
|
|
{% endfor %}
|
|
# v0.13.3 root route /favicon.png is served from the frontend build dir
|
|
# (index.html links /static/* from the backend static mounted above).
|
|
Volume={{ open_webui_favicon_dir }}/favicon.png:/app/build/favicon.png:ro
|
|
# Secrets are injected as environment variables, never written to disk or git.
|
|
Secret={{ open_webui_webui_secret_key_secret }},type=env,target=WEBUI_SECRET_KEY
|
|
Secret={{ open_webui_engine_api_key_secret }},type=env,target=OPENAI_API_KEY
|
|
{% for key, value in open_webui_env.items() %}
|
|
Environment="{{ key }}={{ value }}"
|
|
{% endfor %}
|
|
{% if open_webui_oidc_enabled %}
|
|
Environment="WEBUI_URL={{ open_webui_public_url }}"
|
|
Environment="ENABLE_OAUTH_SIGNUP=True"
|
|
Environment="ENABLE_SIGNUP=False"
|
|
Environment="OPENID_PROVIDER_URL={{ open_webui_oidc_provider_url }}"
|
|
Environment="OAUTH_CLIENT_ID={{ open_webui_oidc_client_id }}"
|
|
Environment="OAUTH_SCOPES=openid email profile"
|
|
Environment="OAUTH_CODE_CHALLENGE_METHOD=S256"
|
|
Environment="OAUTH_PROVIDER_NAME=Keycloak"
|
|
{% if open_webui_oidc_use_client_secret %}Secret={{ open_webui_oidc_client_secret_secret }},type=env,target=OAUTH_CLIENT_SECRET
|
|
{% endif %}{% endif %}
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
TimeoutStartSec=600
|
|
|
|
[Install]
|
|
WantedBy=default.target
|