mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Can't connect to DB: BadConnection("Can\'t connect to MySQL server on \'mysql\' (115)") #604
Reference in New Issue
Block a user
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 @misterbit-pro on GitHub (Feb 7, 2020).
docker-compose.yml:
docker conatiner log:
I have no clue what's happening here! I have tried multiple docker-compose configuartions, but there is always the same error. Can anyone help me with this?
@dennisgerding commented on GitHub (Feb 11, 2020):
I think its because you have to name your container to
mysql. The alternative is to usedocker-compose ps, find out the container name and change your connection string tomysql://bitwarden:test1234@MYSQL_CONTAINER_NAME_HERE/bitwarden@misterbit-pro commented on GitHub (Feb 21, 2020):
That doesn't work either!
My new docker-compose file:
Logs are the same!
@dennisgerding commented on GitHub (Feb 21, 2020):
Hello @misterbit-pro, i got it working with the
docker-compose.ymlfile i put under this message. I believe you got your error because bitwarden_rs is started up before mysql is fully started. Usingdepends_onforces docker-compose to boot up mysql first.Please also remember the first time you want to register yourself you have to start the container with
SIGNUPS_ALLOWED: 'true'Take care!
Dennis