Hi, I have a clojurescript project running on nginx within docker which has a reverse proxy set up to a graphql service running in another docker container. This is working fine, but how can I improve the local dev experience? When I start my backend docker container and start the clojurescript app through cider, I get CORS errors because the reverse proxy is only in place if nginx is running. How can I make the reverse proxy part of my local dev flow?
cross posted from #nginx
docker-compose will allow you to coordinate containers, setup dependencies between services etc
my docker-compose runs great but how can I jack into it?
as in connect to the nrepl port?
as in connect to shadowcljs that's running inside a docker container
Maybe it's not as hard as I thought
ah, never used it - but you can def expose ports and volumes to your local software (e.g emacs)
If I just start the containers running with docker-compose, and then expose the ports like you said, then I could get everything I needed
if you're on a Mac it gets a bit tricky because you do not have host networking, but there are workarounds
Yeah I am on a mac
😁
host.docker.internal will be your friend then :-)
😁 thanks