mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #114] Worker container config should use environment variables for DB #87
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#87
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 @jessecureton on GitHub (Sep 7, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/114
The app production config uses environment variables for
POSTGRES_HOST/POSTGRES_USER/etc. The worker production config uses static definitions for the DB connection.The environment variables are very useful for running in container orchestration frameworks like Kubernetes or Nomad, and it would be great to not have to patch the worker container's production config at runtime.
Can the default worker config be updated to match the default app config & use the env variables?
@ciur commented on GitHub (Sep 8, 2020):
@jessecureton, sure ! It can :)
To be honest, I rarely use docker. But if you do this change, I will gladly accept your pull request! 😁
One remark though: if you decide to do the change, please do it in stable/1.4.x branch.
@jessecureton commented on GitHub (Sep 9, 2020):
Opened a PR against stable/1.4.x in #115. Let me know if there's anything you'd prefer to change :)
@ciur commented on GitHub (Sep 9, 2020):
@jessecureton I merged your pull request. Thank you!
Just now, after merge was complete, I thought that maybe your PR was work in progress... :)
If it is so, please, next time mark it with [WIP] prefix (work in progress).
Thank you for your contribution!
@ciur commented on GitHub (Sep 10, 2020):
@jessecureton, your changes were added to master and 1.4.x branches.
1.4.3 release will be available next week (somewhere between 14-18 Sept 2020) so that you could test if the changes did the trick for you.
I rely on you, guys, to test docker part. As I mentioned above I don't use docker myself :)
@jessecureton commented on GitHub (Sep 12, 2020):
Hi @ciur! Yes, I did a local build of the container with my changes and pushed it to a local docker repo. All seemed to work as expected. I will upgrade my deployment to 1.4.3 when it is available and report if there are any issues.
@ciur commented on GitHub (Sep 14, 2020):
great! thank you!