-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Replace placeholers in properties with envsubst
#72
base: main
Are you sure you want to change the base?
Replace placeholers in properties with envsubst
#72
Conversation
I am a bot, here is the pushed image/manifest for this PR:
|
This reverts commit 62dab7b
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
…n-proeprties # Conflicts: # readme-vars.yml
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
…n-proeprties # Conflicts: # README.md # readme-vars.yml
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
I am a bot, here is the pushed image/manifest for this PR:
|
Description:
Use
envsubst
tool to replace placeholders insystem.properties
fileBenefits of this PR and context:
MONGO_AUTHSOURCE
,MONGO_TLS
etcmongo://user:pass@localhost:27017/my-unifi-db?option=value
or for MongoDB Atlasmongodb+srv://unifi-user:[email protected]/unifi?retryWrites=true&w=majority&appName=unifi
Cons: no check if MongoDB is alive.
How Has This Been Tested?
Tested with the following steps on MacOS 14 (Intel):
docker build -t unifi .
docker run --name unifi -p 8443:8443 -e MONGO_URI="mongodb+srv://unifi:[email protected]/unifi?retryWrites=true&w=majority&appName=unifi" -e STAT_MONGO_URI="mongodb+srv://unifi:[email protected]/unifi-stats?retryWrites=true&w=majority&appName=unifi" -e MONGO_DBNAME=unifi unifi
unifi
andunifi_stat
DBs are created in MongoDB clusterSource / References: