kpagacz/wiki-on-fire

The nginx docker configuration in dev-nginx.conf does not work on MacOS

Opened this issue · 0 comments

I am pretty sure there is limited support for this on MacOS:

proxy_pass http://host.docker.internal:3001;

I kind of knew about but I was also pretty sure we all develop on windows so it wasn't an issue at the time. I don't know the solution, this needs some research.

Alternatively, we can containerise the backend application which would solve this problem. This is how I think it should be done tbh. The backend container would just run the npm run start and the rest would be the responsibility of the user. Would also need some auto restart capabilities I think because the nodemon server sometime likes to crash and not wake up anymore. Or resign from nodemon and do restart:always in the container configuration.