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

Docker Secret Support #411

Open
beny2000 opened this issue Jan 15, 2025 · 2 comments
Open

Docker Secret Support #411

beny2000 opened this issue Jan 15, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@beny2000
Copy link

Hi, love the project. It's the most straightforward approach to monitoring I've come across. I was wondering if there is (or will be) Docker secret support for environment variables. I'd like to be able to specify the agent key in a Docker secret and pass the file path as the environment variable, as is common with other services.

For example, being able to do something like this would be great

beszel-agent:
  image: henrygd/beszel-agent
  network_mode: host
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock:ro
  environment:
    PORT: 45879
    KEY_FILE: /run/secrets/beszel_agent_key
  secrets:
     - beszel_agent_key

Thanks

@beny2000
Copy link
Author

Added support for this in #412

@henrygd henrygd added the enhancement New feature or request label Jan 15, 2025
@henrygd
Copy link
Owner

henrygd commented Jan 15, 2025

Thanks, I'll check it out tomorrow.

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

No branches or pull requests

2 participants