Skip to content
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

Allow providing a custom database port when setting up Matomo (through installation form and env variable) #22051

Open
frapell opened this issue Mar 26, 2024 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@frapell
Copy link

frapell commented Mar 26, 2024

Summary

I am trying to install matomo using the official docker image, using a hosted mysql database with a custom port (ie. not 3306), and I am unable to connect to it, mainly because there is no way to provide the port to connect to...

I saw this PR #13676 which includes a bunch of env vars, but no MATOMO_DATABASE_DBPORT or similar. I tried using host:port with the MATOMO_DATABASE_HOST variable, but that doesn't work.

I also found this matomo-org/docker#172 from 2019, but I guess it is not a desired feature to have?

Is there a quick workaround I could try?

@frapell frapell added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. To Triage An issue awaiting triage by a Matomo core team member labels Mar 26, 2024
@sgiehl
Copy link
Member

sgiehl commented Apr 4, 2024

@frapell you could maybe use the https://github.com/matomo-org/plugin-EnvironmentVariables plugin, which should allow to provide additional configs as env variables.

Besides that I don't have an idea. The problem is, that even the default Matomo installation process currently does not allow to provide a custom database port, but always assumes the default port. So this would be something we need to change aswell.

@sgiehl sgiehl removed the To Triage An issue awaiting triage by a Matomo core team member label Apr 4, 2024
@sgiehl sgiehl added this to the For Prioritization milestone Apr 4, 2024
@sgiehl sgiehl changed the title Be able to provide the Database port using an enviromental variable Allow providing a custom database port when setting up Matomo (through installation form and env variable) Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants