question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Worker container config should use environment variables for DB

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ciurcommented, 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!

0reactions
ciurcommented, Sep 14, 2020

great! thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

A complete guide to using environment variables and files ...
Environment variables keep your app secure and flexible. This article will demonstrate that it's easy to pass both individual variables and files that...
Read more >
Docker Environment Variables: Setup and Configuration for ...
Docker environment variables store specific data to each user accessing an app. Find 50 variables to use in setting up and configuring ......
Read more >
Environment variables in Compose | Docker Documentation
Your configuration options can contain environment variables. Compose uses the variable values from the shell environment in which docker-compose is run.
Read more >
Use environment variables | Cloud Run Documentation
When you set environment variables, they are injected into the container and are accessible to your code. Environment variables are set as key/value...
Read more >
Environment variables - GitLab Docs
GitLab exposes certain environment variables which can be used to ... We welcome merge requests to make more settings configurable by using variables....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found