Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow containers to be disabled/enabled with docker labels #71

Open
philhawthorne opened this issue Apr 3, 2020 · 4 comments
Open

Allow containers to be disabled/enabled with docker labels #71

philhawthorne opened this issue Apr 3, 2020 · 4 comments
Milestone

Comments

@philhawthorne
Copy link
Owner

Add a new feature which will include or exclude a container based on the docker labels present.

This will allow people using docker-compose or the command line to have each container expose or not expose to ha-dockermon.

An example docker compose file would look like

version: '3.0'
services:
  homeassistant:
    image: homeassistant/home-assistant
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Toronto
    volumes:
      - /config
    deploy:
      restart_policy:
        condition: on-failure
      labels:
        - hadockermon.enable=true
@philhawthorne philhawthorne added this to the Version 1.0 milestone Apr 4, 2020
@imascarenhas
Copy link

Would it be possible to have this functionality to control whether it can be stopped/started via the api too please?

Having a label to enforce a container being read-only would be ideal for more critical containers like Nginx which you may not want to disturb by accident but still be able to monitor what is going on with it.

@philhawthorne
Copy link
Owner Author

Great idea @imascarenhas

@BenRoe
Copy link

BenRoe commented Jan 8, 2024

+1 for whitelist via labels.

@BenRoe
Copy link

BenRoe commented Feb 9, 2024

Any news for this feature?
Would be very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants