Flask and React Docker containers not communicating via Docker-Compose

后端 未结 1 1012
闹比i
闹比i 2021-01-16 01:35

I have two containers - one containing a react app, another a flask app.

I can build both using the below docker-compose file and their respective Dockerfiles, and a

相关标签:
1条回答
  • As LinPy and leopal in the comments pointed out 127.0.0.1 in package.json needed to be changed to reference the correct flask container.

    "proxy": "http://middleware:5000",
    
    0 讨论(0)
提交回复
热议问题