Better Docker Support PR #455

Closed
opened 2025-12-29 01:29:36 +01:00 by adam · 3 comments
Owner

Originally created by @acul009 on GitHub (Mar 29, 2023).

Feature request

I would like to edit the configuration logic as well as the Dockerfile to make it possible to configure headscale using the environment variables only. I'd need this for my portainer setup.

I'd suggest adding a configuration "SKIP_CONFIG_READ" which would skip checking the config file and instead rely on the environment variables only.

I also think it would be nice to use a double underscore as environment separator, like some other projects like gitea do, as I think that helps differentiate the variables better, but this would break backwards compatibility, so it's probably a bad idea.

If you are ok with my suggestion, I'd get to work on a PR.

Edit: I should probably clarify my intent a bit better. My goal would be to run headscale without any additional configuration as bind mounts so it's easier to deploy. If you'd want this feature for consistency, I could also autocreate the sqlite db if it hasn't been initialized yet.

Originally created by @acul009 on GitHub (Mar 29, 2023). **Feature request** I would like to edit the configuration logic as well as the Dockerfile to make it possible to configure headscale using the environment variables only. I'd need this for my portainer setup. I'd suggest adding a configuration "SKIP_CONFIG_READ" which would skip checking the config file and instead rely on the environment variables only. I also think it would be nice to use a double underscore as environment separator, like some other projects like gitea do, as I think that helps differentiate the variables better, but this would break backwards compatibility, so it's probably a bad idea. If you are ok with my suggestion, I'd get to work on a PR. Edit: I should probably clarify my intent a bit better. My goal would be to run headscale without any additional configuration as bind mounts so it's easier to deploy. If you'd want this feature for consistency, I could also autocreate the sqlite db if it hasn't been initialized yet.
adam added the enhancementstale labels 2025-12-29 01:29:36 +01:00
adam closed this issue 2025-12-29 01:29:36 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 26, 2023):

This issue is stale because it has been open for 180 days with no activity.

@github-actions[bot] commented on GitHub (Sep 26, 2023): This issue is stale because it has been open for 180 days with no activity.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 11, 2023):

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions[bot] commented on GitHub (Oct 11, 2023): This issue was closed because it has been inactive for 14 days since being marked as stale.
Author
Owner

@babyhuey commented on GitHub (Oct 17, 2023):

This is relevant to me too. Can it be reopened?

@babyhuey commented on GitHub (Oct 17, 2023): This is relevant to me too. Can it be reopened?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#455