Expose environment (hosted on Docker) both on localhost and Ngrok

I finally managed to make it working, by:

  1. installing the relative-url WordPress plugin

  2. forcing ngrok to set the host header:

docker run -it --net=host -e NGROK_AUTHTOKEN=<myToken> ngrok/ngrok http --host-header=127.0.0.1:8181 8181

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)