DEV Community

loading...

Discussion on: Microservice in Python using FastAPI

Collapse
tadashii1417 profile image
tadashii1417

Thanks a lot for your article, really appreciate that !

But I have a little problem, when I clone the code and run "docker-compose up -d", it return
"502 Bad Gateway"

Do you know how to fix this ? I quite new to docker and nginx :v

Thanks in advance !

Collapse
nyancodeid profile image
Ryan Aunur Rassyid

same here

[SOLVED]
Check your docker-compose logs to see what problem came from.

docker-compose logs

Collapse
uwevanopfern profile image
UweVanOpfern

I was facing the issue, fixed by solving this BUG, because in docker-compose.yml we used DATABASE_URI under movie-service, change it in movie-service\app\api\db.py as well, replace everywhere you have DATABASE_URL to DATABASE_URI