Hey found the solution man. Instead of "proxy": "localhost:5000", I replaced localhost with the Server's Docker service name from the docker-compose file. Now it looks something like this "proxy": "cfy_server:5000". It's working.
I came across this article because I am looking for a semi-unrelated react/express docker-compose issue that you solved via the above eg. http://docker-compose-service_name:xxxx.
No one anywhere said I needed to use my service name instead of localhost, but you did. Thank you for your post!
PS I included for entertainment my docker-compose file because they look almost identical, yet I didn't even come hear for help with that file; it was already finished. I came only for the package for the proxy fix.
Hey found the solution man. Instead of "proxy": "localhost:5000", I replaced localhost with the Server's Docker service name from the docker-compose file. Now it looks something like this "proxy": "cfy_server:5000". It's working.
Bro. I seriously forgot about that. Awesome you found the issue.
Thanks for the heads up. I updated the post. I am amazed that no one encountered this issue before.
I came across this article because I am looking for a semi-unrelated react/express docker-compose issue that you solved via the above eg.
http://docker-compose-service_name:xxxx
.No one anywhere said I needed to use my service name instead of
localhost
, but you did. Thank you for your post!PS I included for entertainment my docker-compose file because they look almost identical, yet I didn't even come hear for help with that file; it was already finished. I came only for the package for the proxy fix.