Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Genralising docker-gen for database use-case #461

Closed
phil-lello-gb opened this issue Sep 25, 2022 · 1 comment
Closed

Genralising docker-gen for database use-case #461

phil-lello-gb opened this issue Sep 25, 2022 · 1 comment

Comments

@phil-lello-gb
Copy link

phil-lello-gb commented Sep 25, 2022

I am considering forking docker-gen (which means learning go) to support the following flow:

  • docker-gen listens for enviornment variables DB_HOST, DB_USER, DB_PASSWORD, DB_NAMESPACE (or less offensive generalisation)
  • when a container starts the docker-gen host spits out and applies SQL of a "IF NOT EXISTS CREATE DATABASE xxx; GRANT ALL ON xxx TO yyy' persuasion

From what I can tell, the missing element from the existing software is the list of variables - or perhaps the documentation reflects the initial purpose and this is already possible - making this a "Documentation Request" rather than "Feature Request"

In the considered use-case there may be issues relating to multiple services and host/network naming.

@phil-lello-gb
Copy link
Author

I must stop coding when I'm too tired. Meanwhile, here's an "good enough for dev" implementation of automated DB creation against mariadb. Since it is an mysql variant, no doubt the syntax will need tweaking depending on day of week, ambient temparature, mother's maiden name, and so on.

#462

@nginx-proxy nginx-proxy locked and limited conversation to collaborators May 16, 2024
@buchdag buchdag converted this issue into discussion #616 May 16, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant