-
Notifications
You must be signed in to change notification settings - Fork 53
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 to use $config['db_socket'] #31
Comments
ok, I found a other workaround. I use host.docker.internal as internal host. Thats my compose file - maybe it is helpful for others.
But I leave the issue open, because socket access is more powerful. |
I did some research and found the extra impact to observium-init.sh file. Consequently, I could not merge this request into the repository yet. Hopefully, I will get the proper solution to fulfill your request in future. |
Hi @ThomasCr, Why can't you just map the connexion to your host's IP or hostname directly ? |
Hi,
I like to use this container with a mysql installation on the host system.
I mapped /var/run/mysqld/mysqld.sock to the container - db installation was fine, but observium can't access the database.
I think we miss something like in config.php:
$config['db_socket'] = getenv('OBSERVIUM_DB_SOCKET');
So that we can set the env
OBSERVIUM_DB_SOCKET=/var/run/mysqld/mysqld.sock
The text was updated successfully, but these errors were encountered: