Spefifying the mariadb ip and port? #391

Closed
opened 2026-02-04 20:15:44 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @mannp on GitHub (Aug 30, 2019).

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). 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
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.

@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?

@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.

@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.

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#391