feat(web-app-dashboard): switch dashboard deployment to ghcr.io/kevinveenbirkenbach/port-ui:1.0.0

- stop pulling/building from the port-ui repository
- run dashboard via fixed image tag
- mount generated config.yaml into /app/config.yaml (read-only)
This commit is contained in:
kevinveenbirkenbach committed 2026-02-19 16:05:26 +01:00
1 parent 1fb252fc7d
commit f7318feae5
4 files changed
+19 -21

No files matched your search

+11 -10
View File
@@ -28,20 +28,21 @@ server:
compose:
services:
oidc:
enabled: true
shared: true
enabled: true
shared: true
simpleicons:
enabled: true
shared: true
enabled: true
shared: true
logout:
enabled: true
enabled: true
matomo:
enabled: true
shared: true
enabled: true
shared: true
dashboard:
enabled: false
name: "dashboard"
image: "dashboard_custom"
enabled: false
name: "dashboard"
image: "ghcr.io/kevinveenbirkenbach/port-ui"
version: "1.0.0"
css:
enabled: true
javascript:
+2 -3
View File
@@ -17,9 +17,8 @@
include_role:
name: sys-stk-full
vars:
docker_compose_flush_handlers: false
docker_git_repository_address: "https://github.com/kevinveenbirkenbach/port-ui"
docker_git_repository_pull: true
docker_compose_flush_handlers: false
docker_git_repository_pull: false
- name: "Check if host-specific config.yaml exists in {{ DASHBOARD_CONFIG_INV_PATH }}"
stat:
@@ -1,16 +1,12 @@
{% include 'roles/sys-svc-compose/templates/base.yml.j2' %}
portfolio:
dashboard:
{% set container_port = 5000 %}
build:
context: {{ docker_repository_path }}
dockerfile: Dockerfile
pull_policy: never
image: {{ DASHBOARD_IMAGE }}
image: {{ DASHBOARD_IMAGE }}:{{ DASHBOARD_VERSION }}
container_name: {{ DASHBOARD_CONTAINER }}
ports:
- {{ DOCKER_BIND_HOST }}:{{ ports.localhost.http[application_id] }}:{{ container_port }}
volumes:
- {{ docker_repository_path }}app:/app
- "{{ DASHBOARD_CONFIG_YML_DEST }}:{{ DASHBOARD_CONFIG_YML_DOCKER_DEST }}:ro"
restart: {{ DOCKER_RESTART_POLICY }}
{% include 'roles/sys-svc-container/templates/networks.yml.j2' %}
{% include 'roles/sys-svc-container/templates/healthcheck/tcp.yml.j2' %}
+3 -1
View File
@@ -23,7 +23,8 @@ DASHBOARD_LOCATION_SILENT_CHECK: "/silent-check-sso.html"
## Configuration
DASHBOARD_CONFIG_YML_SRC_FILE: "config.yaml.j2"
DASHBOARD_CONFIG_INV_PATH: "{{ [ inventory_dir, 'files', inventory_hostname ,'docker',application_id,DASHBOARD_CONFIG_YML_SRC_FILE] | path_join }}"
DASHBOARD_CONFIG_YML_DEST: "{{ [ docker_repository_path, 'app/config.yaml'] | path_join }}"
DASHBOARD_CONFIG_YML_DEST: "{{ [ lookup('container', application_id, 'directories.volumes'), 'config.yaml' ] | path_join }}"
DASHBOARD_CONFIG_YML_DOCKER_DEST: "/app/config.yaml"
## OIDC
DASHBOARD_KEYCLOAK_LOGIN_URL: >-
@@ -38,3 +39,4 @@ DASHBOARD_OIDC_ENABLED: "{{ lookup('config', application_id, 'compos
## Docker
DASHBOARD_CONTAINER: "{{ lookup('config', application_id, 'compose.services.dashboard.name') }}"
DASHBOARD_IMAGE: "{{ lookup('config', application_id, 'compose.services.dashboard.image') }}"
DASHBOARD_VERSION: "{{ lookup('config', application_id, 'compose.services.dashboard.version') }}"