This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-29
Channels
- # aws (8)
- # babashka (45)
- # beginners (83)
- # cider (23)
- # clj-on-windows (4)
- # cljdoc (23)
- # clojars (6)
- # clojure (68)
- # clojure-dev (33)
- # clojure-europe (75)
- # clojure-nl (1)
- # clojure-uk (4)
- # clojurescript (14)
- # conjure (6)
- # data-science (15)
- # datascript (7)
- # datomic (47)
- # docker (15)
- # events (1)
- # fulcro (4)
- # graphql (3)
- # jobs (4)
- # lsp (14)
- # nginx (2)
- # nrepl (2)
- # off-topic (41)
- # pathom (18)
- # pedestal (1)
- # polylith (72)
- # reitit (8)
- # reveal (1)
- # shadow-cljs (48)
- # tools-build (11)
- # tools-deps (24)
- # xtdb (8)
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 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
😁 thanks