-
Notifications
You must be signed in to change notification settings - Fork 556
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
Feature request: Using external mysql database #156
Comments
Hi @matusnovak, Yeah, the database adress should be changeable via environment variable as well. Will add it ASAP. |
@matusnovak per df98c28 I've made the database address changeable via environment variable Lines 105 to 113 in df98c28
|
Awesome! Thank you very much. |
For future visitors: If anyone is trying to do the same, you have to wrap the MySQL address in
Reference: go-sql-driver/mysql#427 |
Would it be possible to use an external MySQL database? I have noticed that connecting to the MySQL is done via:
shiori/internal/database/mysql.go
Line 23 in 2eb6415
From my understanding, that uses localhost automatically and there is currently no way how to specify hostname. Only username, password, and dbname can be changed via environment variables.
I would like to use an external database. Would that be possible? The reason is that I am planning to run this in a docker swarm, having persistent volume across nodes is tricky, so having centralised MySQL database would be easy in this case.
The text was updated successfully, but these errors were encountered: