docker-compose Cannot connect to mysql (or external sites at all?) #3421
Unanswered
xlorepdarkhelm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This seems like it should be obvious, but I can't seem to get it to work.
I am trying to get YOURLS up and running with the following docker-compose.yml:
When I do a
docker compose up
on this, it looks like everything works. When I go to "https://my-site.org/admin" I get the following error:Fatal error
Incorrect DB config, or could not connect to DB
PDOException: SQLSTATE[HY000] [2002] Connection timed out
I am willing to accept that I misconfigured something, but I can't for the life of me figure it out.
If I go into the docker image for yourls, I can't even do an "apt update" as there is no successful connection to update apt, much less be able to install anything to help me diagnose the problem further.
please help.
Beta Was this translation helpful? Give feedback.
All reactions