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

use an external database #6

Open
shizkgit opened this issue Mar 15, 2022 · 3 comments
Open

use an external database #6

shizkgit opened this issue Mar 15, 2022 · 3 comments

Comments

@shizkgit
Copy link

Hello, I want to use an external database. How can I define the variable "alertsnitch_dsn",my database is mysql.

@YXKN
Copy link

YXKN commented Jun 7, 2022

Hello, I want to use an external database. How can I define the variable "alertsnitch_dsn",my database is mysql.

Hello, friend. I had the same problem and I have found a resolvent. Like this below
ALERTSNITCH_DSN="root:root@tcp(192.168.128.1:3306)/alertsnitch"

@shizkgit
Copy link
Author

shizkgit commented Jun 7, 2022 via email

@yezimai
Copy link

yezimai commented Jan 9, 2025

I used the method above to start the container, but it still reported an error. “failed to connect to datbase: empty DSN provided,cant connect to mysql”

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

3 participants