mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[GH-ISSUE #82] Config file instead of/alternate to environmental variables #42
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nwithan8 on GitHub (Jul 23, 2025).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/82
Originally assigned to: @glenndehaan on GitHub.
The feature
The number of environmental variables for this is starting to get out of control. Could you consider, from a Docker perspective, instead of having to define dozens of environmental variables, instead having a single config file mounted into the container instead?
@glenndehaan commented on GitHub (Jul 23, 2025):
Hi @nwithan8,
I have some good news, technically this is already possible.
See the Home Assistant addon injects its configuration into a specific location within the container for me to read it.
And you could utilize this as well. It works like this:
options.json:
docker-compose.yml:
You basically lowercase the now already available environment variables.
I will update the README to reflect this option is also available for people who don't like the environment variables.
Kind regards,
Glenn de Haan