Closed ncul777 closed 3 months ago
@culliard sorry but if you just run docker container separately with Traduora backend, it means you need to make sure your MySQL is started before that. Did you checked that MySQL is running locally? According to https://stackoverflow.com/questions/4359131/brew-install-mysql-on-macos on Mac OS you may get "MySQL server might not be running after installation with Brew. Try brew services start mysql or just mysql.server start if you don't want MySQL to run as a background service." etc.
My MySQL was started fine.
Running docker run -d -p 8080:8080 --name traduora everco/ever-traduora:latest
it did not work. There could be detailed info about running traduora with mysql in this case. Ideally also test it on a macbook.
In my opinion issue is not closed, although maybe low priority as there are other ways to get it running.
Maybe MySQL started fine, but did not bind to 127.0.0.1:3306, which is expected by Traduora to connect to by default I think... You can control host of DB with TR_DB_HOST
env var, we should have it somewhere in docs :)
Describe the bug Trying to run the docker container however it fails to connect to the mysql database
To Reproduce Steps to reproduce the behavior:
brew install mysql
Expected behavior The container runs, connects to the db and I can access the UI.
Environment (please complete the following information):
Additional context A possible solution could be to use
host.docker.internal
instead oflocalhost
or127.0.0.1
See https://stackoverflow.com/a/43541681Running
docker-compose up
works fine as it downloads the mysql container