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

DB_PORT environmental variable #14

Open
aradhir opened this issue Nov 11, 2021 · 6 comments
Open

DB_PORT environmental variable #14

aradhir opened this issue Nov 11, 2021 · 6 comments

Comments

@aradhir
Copy link

aradhir commented Nov 11, 2021

Hello,

I saw at the cypth git page (cypht-org/cypht#442) that a customized DB port was added. Is this accessible via the docker image provided by dockerhub (https://registry.hub.docker.com/r/sailfrog/cypht-docker/)?

I tried to add a ENV called "CYPHT_DB_PORT" but I still get "Waiting for database connection ... (SQLSTATE[HY000] [2002] Connection refused)".
I am running the sailfrog/cypht-docker on a synology 918+ NAS and want to use a mariadb docker container on a non-standard port als database.

Best
Aradhir

@Tanjohnson99
Copy link

Hi, did you find a solution? Thanks

@ifm90
Copy link

ifm90 commented Jul 15, 2023

i have same configuration and also looking for a solution

@Tanjohnson99
Copy link

nothing?

@AhmedAmmarNegoudi
Copy link

AhmedAmmarNegoudi commented Sep 10, 2023

If find a solution that may help someone
Actually i'm not using docker
i found a solution by changing hm3.ini
db_connection_type=host to db_connection_type=socket
and my socket path is /var/lib/mysql/mysql.sock
so i also changed
db_socket=/var/lib/mysqld/mysqld.sock to db_socket=/var/lib/mysql/mysql.sock
and it works

@marclaporte
Copy link
Member

@jonocodes
Copy link

If this is still a problem can you explain your network setup a bit more.

It sounds like you are running cypht and maria db in containers. But are they in the same docker network? Are they on different hosts?

Have you tried running mariadb on the standard port and seen if that works in your setup?

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

No branches or pull requests

6 participants