docker / awesome-compose

Awesome Docker Compose samples
https://docs.docker.com/compose/
Creative Commons Zero v1.0 Universal
34.57k stars 6.64k forks source link

Awesome Compose react-express-mongodb #366

Open Pawel1894 opened 1 year ago

Pawel1894 commented 1 year ago

Hey,

React + Express + MongoDB example is in a really bad shape right now. Readme files and actual setup is much different which is quite confusing, names and dockerfiles does not match the descriptions. Link to example

WeirdDNA commented 8 months ago

Any ideas on how to get this to work? Trying on my mac, and the back end says it's started and online, but has absolutely no logs displayed.

When I try to add a TODO from the front end, it says

2024-02-01 11:22:42 Proxy error: Could not proxy request /api/todos from localhost:3001 to http://backend:3000. 2024-02-01 11:22:42 See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

lsof shows I have port 3001 in use (by this docker project), and nothing on 3000.

Pawel1894 commented 8 months ago

Any ideas on how to get this to work? Trying on my mac, and the back end says it's started and online, but has absolutely no logs displayed.

When I try to add a TODO from the front end, it says

2024-02-01 11:22:42 Proxy error: Could not proxy request /api/todos from localhost:3001 to http://backend:3000. 2024-02-01 11:22:42 See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

lsof shows I have port 3001 in use (by this docker project), and nothing on 3000.

I remember I did make it to work but can't find this repo :disappointed: . The only one i found is nestjs+react+postgres+rabbitmq maybe it will help you somehow to navigate the problem. https://github.com/Pawel1894/DevScribe