Leantime / docker-leantime

Official Docker Image for Leantime https://leantime.io
GNU Affero General Public License v3.0
193 stars 85 forks source link

DB_PORT for Docker #15

Closed A75G closed 2 years ago

A75G commented 4 years ago

Hello, I have different port for MySQL tried adding DB_PORT MYSQL_PORT nothing works, im not sure if i missed env or its not there.

marcelfolaron commented 4 years ago

We just closed a similar issue on the main repo. https://github.com/Leantime/leantime/issues/227

Are you running mysql 8? PHP below 7.2 required you to set the old encryption for the password in mysql. I have a link on the other issue.

On Thu, Apr 30, 2020, 2:35 PM A75G notifications@github.com wrote:

Hello, I have different port for MySQL tried adding DB_PORT MYSQL_PORT nothing works, im not sure if i missed env or its not there.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Leantime/docker-leantime/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALG4EFRDSVKEBPOCY2IPSYTRPHVLJANCNFSM4MWVAGPA .

A75G commented 4 years ago

Im Running MariaDB 10.4

tedstriker commented 4 years ago

Despite that, having a separate environment variable for the database port would remove some guess-work, if it is possible to add the port to the host or if there are other ways to configure it.

marcelfolaron commented 4 years ago

You can add the port to the hostname using domain.com:PORT. I will add another env variable to allow setting the port separately

GDnsk commented 3 years ago

You can add the port to the hostname using domain.com:PORT.

Unfortunately it did not work for me. Could you tell me the new env variable name? Thank you.

image

ronnyandre commented 3 years ago

Any solution for this? Not sure why this ticket is closed if this doesn't work.

marcelfolaron commented 3 years ago

The ticket was closed by the OP. Seems the solution above (domain:port) worked for the user. I'll reopen to investigate.