Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
feat: add dozzle for enhanced logs and metrics
Jake Turnerb677fbbe81bf
diff --git a/admin/inertia/components/StyledSidebar.tsx b/admin/inertia/components/StyledSidebar.tsxindex 75d434a0..f15ed9d8 100644--- a/admin/inertia/components/StyledSidebar.tsx+++ b/admin/inertia/components/StyledSidebar.tsx@@ -4,14 +4,17 @@ import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'import classNames from '~/lib/classNames'import { IconArrowLeft } from '@tabler/icons-react'+type SidebarItem = {+ name: string+ href: string+ icon?: React.ElementType+ current: boolean+ target?: string+}+interface StyledSidebarProps {title: string- items: Array<{- name: string- href: string- icon?: React.ElementType- current: boolean- }>+ items: SidebarItem[]}const StyledSidebar: React.FC<StyledSidebarProps> = ({ title, items }) => {@@ -22,16 +25,12 @@ const StyledSidebar: React.FC<StyledSidebarProps> = ({ title, items }) => {return window.location.pathname}, [])- const ListItem = (item: {- name: string- href: string- icon?: React.ElementType- current: boolean- }) => {+ const ListItem = (item: SidebarItem) => {return (<li key={item.name}><ahref={item.href}+ target={item.target}className={classNames(item.current? 'bg-desert-green text-white'diff --git a/admin/inertia/layouts/SettingsLayout.tsx b/admin/inertia/layouts/SettingsLayout.tsxindex 186b856b..ee16e895 100644--- a/admin/inertia/layouts/SettingsLayout.tsx+++ b/admin/inertia/layouts/SettingsLayout.tsx@@ -4,12 +4,14 @@ import {FolderIcon,MagnifyingGlassIcon,} from '@heroicons/react/24/outline'-import { IconGavel } from '@tabler/icons-react'+import { IconDashboard, IconGavel } from '@tabler/icons-react'import StyledSidebar from '~/components/StyledSidebar'+import { getServiceLink } from '~/lib/navigation'const navigation = [{ name: 'Apps', href: '/settings/apps', icon: CommandLineIcon, current: false },{ name: 'Legal Notices', href: '/settings/legal', icon: IconGavel, current: false },+ { name: 'Service Logs & Metrics', href: getServiceLink('9999'), icon: IconDashboard, current: false, target: '_blank' },{ name: 'ZIM Manager', href: '/settings/zim', icon: FolderIcon, current: false },{name: 'Zim Remote Explorer',diff --git a/install/management_compose.yaml b/install/management_compose.yamlindex 66bf9946..f3290512 100644--- a/install/management_compose.yaml+++ b/install/management_compose.yaml@@ -34,6 +34,17 @@ services:interval: 30stimeout: 10sretries: 3+ dozzle:+ image: amir20/dozzle:latest+ container_name: nomad_dozzle+ restart: unless-stopped+ ports:+ - "9999:8080"+ volumes:+ - /var/run/docker.sock:/var/run/docker.sock # Allows Dozzle to read logs from the Host's Docker daemon+ environment:+ - DOZZLE_ENABLE_ACTIONS=true # Enables the action buttons (restart, stop, etc.)+ - DOZZLE_ENABLE_SHELL=true # Enables web-based shell accessmysql:image: mysql:8.0container_name: nomad_mysql