Skip to content

estenrye/octopod

Repository files navigation

Gitpod ready-to-code

Octopod

CI (Build, Lint, Test)

What this tool does

This tool exposes an un-authenticated JSON endpoint to export out docker swarm service information.

How do you run it?

From the commandline:

docker run --name octopod-server -d -p 9042:9042 -v /var/run/docker.sock:/var/run/docker.sock:ro estenrye/octopod

In a docker stack file:

version: "3.7"
services:
  server:
    image: estenrye/octopod
    deploy:
      mode: global
      placement:
        constraints:
          - node.role==manager
    ports:
      - target: 9042
        published: 9042
        protocol: tcp
        mode: ingress
    volumes:
      - type: bind
        source: /var/run/docker.sock
        target: /var/run/docker.sock
        read_only: true

To deploy:

docker stack deploy -c ./stack.yml octopod

What APIs does it provide?

API Endpoint Description
/summary Returns a list of all services in the swarm and all task
instances for each service.
/summary/{name} Returns a list of services that prefix match {name}
and all task instances for each matching service.
/services Returns a list of all services in the swarm with their
environment variables and service labels.
/services/{name} Returns a list of servicesz that prefix match {name}
and their environment variables and service labels.

About

A tool for visualizing Docker Swarm state

Resources

Stars

Watchers

Forks

Packages

No packages published