Code Monkey home page Code Monkey logo

Comments (7)

NoLooseEnds avatar NoLooseEnds commented on July 22, 2024 1

I suggest that you leave it open, so that other devs maybe can help if they see it and it's something they know how to do.
Mark it with help wanted for instance and maybe add it to a milestone if it's a feature you like. :)

Like this:
Screenshot 2021-06-09 at 22 58 19

from flame.

rgriffogoes avatar rgriffogoes commented on July 22, 2024 1

I'm in a search for such feature, but I guess the popular dashboards options also don't have it. Currently I'm investigating what would be the best option, and I guess Flame seems to be a good candidate (API already there).

And instead of trying to consume docker api (like Portainer and Traefik does), I was even thinking about consuming Traefik api (rawdata) -- that way it would be possible to generate apps even for non-docker things, and the whole "url/pathprefix" problem would be already solved.

So the problem is divided in different parts, and a final solution could be a mix of any:

Data acquisition:

  1. Read docker socket for special labels
  2. Consume Traefik api

Feature placement:

  1. Simple script to be called/croned
  2. Independent simple app (with timed checks, listener on socket, webapi to be hooked)
  3. Feature in Dashboard code

Target Dashboard:

  1. Flame (rest api)
  2. Homer (static file generation)
  3. Heimdall (no idea)
  4. Organizr (no idea)

I've been using Organizr for a few years already, but the other dashboards I installed just recently.

from flame.

pawelmalak avatar pawelmalak commented on July 22, 2024

Hi. As I said before this is my first time using Docker in any project so I don't know if it would be possible to implement. Do you know any other project that implements that kind of functionality so I could take a closer look at it?

Right now, flame exposes RESTful API for apps, categories and bookmarks if that's what you mean.

from flame.

NoLooseEnds avatar NoLooseEnds commented on July 22, 2024

Traefik maybe? I think you need to expose the docker.socket, but I'm no developer, so not sure.

from flame.

pawelmalak avatar pawelmalak commented on July 22, 2024

Sorry, but for now implementation of this feature is out of my skill and knowlage range.

from flame.

jjack avatar jjack commented on July 22, 2024

Would it be possible with some sort of API, that you can add labels to your docker-compose files and automatically populate Flames dashboard?

I'm not sure how much Flame would be able to automatically populate with just labels and nothing else exposed/consumable.

If you were to label a container as being flammable, Flame would then need some way of determining the type, category, name, url, and icon for it. Many of those would be awfully hard (if not impossible) to divine on their own, so you'd also need to use labels to define the values.

eg:

labels:
  - flame.type=application
  - flame.category=downloads
  - flame.name=Downloader 3000
  - flame.url=http://localhost:3000
  - flame.icon=icon-name

And at that point, you're pretty much just making a distributed configuration file for Flame.

from flame.

NoLooseEnds avatar NoLooseEnds commented on July 22, 2024

Dunno. Maybe you need to connect to the docker socket?

The point is to get Flame dynamicly show the active services, so being able to set them that way would be awesome.

from flame.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.