service-navigator

module
v0.0.0-...-b21754d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT

README

Service Navigator

Testing Docker Pulls

Service Navigator - navigator for your local docker projects in single network

Setup

  1. Download config file: curl https://raw.githubusercontent.com/ArtARTs36/service-navigator/master/service_navigator.yaml > service_navigator.yaml
  2. Define docker network name in service_navigator.yaml in section backend.network_name
  3. Add next lines into your docker-compose.yaml:
services:
  infra:
    image: artarts36/service-navigator:0.1.5
    ports:
      - "9101:8080"
    volumes:
      - type: bind
        source: "/var/run/docker.sock"
        target: "/var/run/docker.sock"
        read_only: true
      - ./:/app
    environment:
      USER: "${USER}"
    networks:
      - {YOUR_NETWORK_NAME}

Config

Config is described in YAML file with name service_navigator.yaml

# This section contains settings for frontend
frontend:
  # Application Name
  #
  # Optional, default: "ServiceNavigator"
  app_name: ServiceNavigator

  # Navbar in header
  navbar:
    links:
      - url: /
        title: Services
      - url: /images
        title: Images
      - url: http://github.com/artarts36/service-navigator
        title: Github
    profile:
      links:
        - url: http://github.com/artarts36/service-navigator
          title: Github
    search:
      providers:
        - name: google
        - name: stackoverflow
        - name: Jira
          url: https://jira.host.name/secure/QuickSearch.jspa
          queryParamName: searchString # search <form> input name
          
  # Pages config
  # 
  # Optional
  pages:
    # Images page config
    #
    # Optional
    images:
      # Settings for selecting the display of counters for an image
      #
      # Optional, default: no show counters
      counters:
        # Show image pulls count
        #
        # Optional, default: false
        pulls: true
        # Show image stars
        #
        # Optional, default: false
        stars: true

# This section contains settings for backend
backend:
  # Docker network name
  #
  # Required
  network_name: infra

  # Services configuration
  services:
      # Poll for finding information about services
      poll:
        # Interval for services polling
        #
        # Default: "2s"
        interval: "2s"
    
        metrics:
          # Count of stored records per service
          #
          # Optional, default: 50
          depth: 10
    
          # A flag that determines whether to store only unique metrics per service
          #
          # Optional, default: false
          only_unique: true

  # Images configuration
  images:
    poll:
      # Interval for services polling
      #
      # Default: "1m"
      interval: "1m"

How Service Navigator finding information about service

Resolving service url

Service Navigator checks:

  • NGINX_PROXY environment variable
  • Public port as http://localhost:{PORT}

Resolving repository url

Service Navigator looks at labels:

  • org.service_navigator.gitlab_repository
  • org.service_navigator.github_repository
  • org.service_navigator.bitbucket_repository
  • org.opencontainers.image.source

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL