ahmetb / cloud-run-faq

Unofficial FAQ and everything you've been wondering about Google Cloud Run.
https://cloud.run
Creative Commons Attribution 4.0 International
2.32k stars 124 forks source link

Sidecar config #173

Open HatmanStack opened 11 months ago

HatmanStack commented 11 months ago

I'm working on an architecture using sidecars and can't seem to get things talking. I have a ngnix server as the main container and uvicorn sidecar running. All the calls from my frontend are using an axios post call to http://localhost:8081 . I'm building the uvicorn container on 8080 then switching to 8081 in the sidecar config by checking the K_SERVICE env var. Doesn't seem like best practice but I was grasping. From the log messages it seems like the uvicorn server is still trying to bind to 8080? Can you guys point me to some more in depth docs that may cover what I'm looking for?