How to get Templ Proxy Server working from inside a docker container #683
Unanswered
grantralls
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Have you tried using |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to create a development docker compose file so I can stand up all my services in one command reliably. A golang server, an nginx server, and a database. I can get the templ hot reload proxy working without docker, but I can't seem to get it work inside the container. My command is
templ generate --watch --open-browser=false --proxy=http://localhost:8080 --proxybind=localhost -v --cmd="go run ."
. I attempt to connect to the server from my browser withhttp://localhost:7331
, I immediately get "site cannot be reached". With no output in the container console. I attempt to hithttp://localhost:8080
and I get results as I expect but of course that's essentially circumventing the proxy server. I've made sure I've exposed and mapped the proper ports but still no luck.Any ideas on how I should proceed?
Beta Was this translation helpful? Give feedback.
All reactions