Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Expose MySQL Configs #7

Open
storopoli opened this issue Jun 3, 2024 · 0 comments
Open

Expose MySQL Configs #7

storopoli opened this issue Jun 3, 2024 · 0 comments

Comments

@storopoli
Copy link
Member

storopoli commented Jun 3, 2024

As discussed in #6, we need to expose the configs of the MySQL database to the user in the start-os GUI.

Use the example from syncthing: https://github.com/Start9Labs/syncthing-startos/blob/724b613c5e880e7476c93afd022d249f62a4b8d0/scripts/procedures/getConfig.ts#L3-L36

Currently it is hardcoded like this:

ENV MYSQL_USER=ulabelbase
ENV MYSQL_DATABASE=labelbase
ENV MYSQL_ROOT_PASSWORD=labelbase
ENV MYSQL_PASSWORD=labelbase
ENV MYSQL_PWD=labelbase

I don't particularly like that approach, yet many Dockerfiles include hard-coded passwords. > That's why I implemented it using the Twelve-Factor App methodology, which resulted in an exports.sh file.

But hey, let's get this up and running. I'll check the Dockerfile as soon as possible.

Originally posted by @xavierfiechter in #6 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant