m1k1o / blog

Lightweight self-hosted facebook-styled PHP blog.
https://blog.m1k1o.net
GNU General Public License v3.0
301 stars 31 forks source link

SQLSTATE[08006] [7] invalid connection option "unix_socket" #38

Closed Brancliff closed 2 years ago

Brancliff commented 2 years ago

New user trying to set things up here. Just set up the docker-compose using postgres. When opening the webpage, I get the error "SQLSTATE[08006] [7] invalid connection option "unix_socket"" as a red popup in the bottom left. I can log in, but I can't post.

If you need more information, let me know! I could give you my folder structure, docker-compose, or the logs from either container if necessary. I just want to make sure if this is something wrong on my end or not, I'm getting more used to docker but I'm not great with linux :s

m1k1o commented 2 years ago

Hi. So i am assuming you use unix_socket as connection. Could you try to set up connection using host? Or setting that unix socket to host (accodding to this answer).