mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #198] Cannot connect to the DB when it is on another host. #172
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chopfitzroy on GitHub (Sep 5, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/198
Checklist
Yes I am using the latest version.
Describe the bug
The database connection is refused when the containers are separate.
To Reproduce
I need to run the app on a docker
macvlanso I have adjusted the example to be like so:This is the Dockerfile I am using for the DB:
And here is my
config.json:I also tried putting the both containers on a
localbridge network and then connecting to the DB like usual (without adjusting thebind-address) same issue.Expected behavior
I am confident that at least one of these methods should have allowed a remote connection, I based this directly on the MariaDB docs https://mariadb.com/kb/en/library/configuring-mariadb-for-remote-client-access/
Operating System
Additional context
I can't think of anything else, but let me know if you can think of anything.
@chopfitzroy commented on GitHub (Sep 6, 2019):
Okay, as it turns out I wasn't waiting long enough for the database server to start, on a positive note if anyone needs to access MariaDB remotely like me the attached Dockerfile works :).
@LeehamElectronics commented on GitHub (Oct 31, 2021):
Which attached Docker file? The Docker file in your comment has a lot of invalid syntaxes.
@chaptergy commented on GitHub (Oct 31, 2021):
@LeehamElectronics If you want to access the MariaDB have a look at https://github.com/jc21/nginx-proxy-manager/discussions/1529#connect-to-mariadb-dbeaver, that will probably help you.
@LeehamElectronics commented on GitHub (Oct 31, 2021):
Thanks foe the clarification, how were you able to access the NPM mariaDB remotely? I have tried exposing ports to it in my docker compose file but the port doesn't show as open. Here is my docker compose file:
@chaptergy commented on GitHub (Oct 31, 2021):
@LeehamElectronics That's exactly how it should work. What database tool are you using? And you can't connect using port 400?