[GH-ISSUE #594] Spefifying the mariadb ip and port? #393

Closed
opened 2026-03-03 01:28:41 +03:00 by kerem · 4 comments
Owner

Originally created by @mannp on GitHub (Aug 30, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/594

Hi there, couple of questions on mysql support :)

Does the docker build include mysql support and how do i specify the IP address of the mariadb database please?

Do I add that into the database url?

-e MYSQL_ROOT_PASSWORD=
-e MYSQL_DATABASE=bitwarden
-e MYSQL_USER=<bitwarden_user>
-e MYSQL_PASSWORD=<bitwarden_pw> -d mysql:5.7

Thanks in advance

Originally created by @mannp on GitHub (Aug 30, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/594 Hi there, couple of questions on mysql support :) Does the docker build include mysql support and how do i specify the IP address of the mariadb database please? Do I add that into the database url? > -e MYSQL_ROOT_PASSWORD=<my-secret-pw>\ > -e MYSQL_DATABASE=bitwarden\ > -e MYSQL_USER=<bitwarden_user>\ > -e MYSQL_PASSWORD=<bitwarden_pw> -d mysql:5.7 Thanks in advance
kerem closed this issue 2026-03-03 01:28:41 +03:00
Author
Owner

@dani-garcia commented on GitHub (Aug 31, 2019):

For MySQL, you need to use the bitwardenrs/server-mysql image and you'd have a variable like this DATABASE_URL=mysql://[user[:password]@]host/database_name.

<!-- gh-comment-id:526841810 --> @dani-garcia commented on GitHub (Aug 31, 2019): For MySQL, you need to use the `bitwardenrs/server-mysql` image and you'd have a variable like this `DATABASE_URL=mysql://[user[:password]@]host/database_name`.
Author
Owner

@mannp commented on GitHub (Aug 31, 2019):

Does your image have anything specific as I have created a db in my goto mariadb docker?

Is there a reason to have to specify the URL when all of the variables are set as environment variables already?

User / /Pass / database .. are these not needed then if they are getting hard coded in the URL?

<!-- gh-comment-id:526852730 --> @mannp commented on GitHub (Aug 31, 2019): Does your image have anything specific as I have created a db in my goto mariadb docker? Is there a reason to have to specify the URL when all of the variables are set as environment variables already? User / /Pass / database .. are these not needed then if they are getting hard coded in the URL?
Author
Owner

@mprasil commented on GitHub (Sep 4, 2019):

bitwarden_rs does not use/read any of the MYSQL_* variables, so you do need to specify the connection parameters in DATABASE_URL as @dani-garcia explained above.

<!-- gh-comment-id:527831846 --> @mprasil commented on GitHub (Sep 4, 2019): `bitwarden_rs` does not use/read any of the `MYSQL_*` variables, so you do need to specify the connection parameters in `DATABASE_URL` as @dani-garcia explained above.
Author
Owner

@mannp commented on GitHub (Sep 12, 2019):

The naming of the docker looks like it was a mysql docker that had to be used with the bitwardenrs docker.

I now see that it is a bitwardenrs docker that is modified to use a mysql client and my standard mariadb docker can be used just fine.

Not that clear, but I will close this now.

<!-- gh-comment-id:530736568 --> @mannp commented on GitHub (Sep 12, 2019): The naming of the docker looks like it was a mysql docker that had to be used with the bitwardenrs docker. I now see that it is a bitwardenrs docker that is modified to use a mysql client and my standard mariadb docker can be used just fine. Not that clear, but I will close this now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#393
No description provided.