Hi, I have a strange error in a docker-swarm deplo...
# ask-community
s
Hi, I have a strange error in a docker-swarm deploy : if I run "curl http://apollo:4200/graphql" from the ui container I get ( I think correctly ) "GET query missing." but the UI itself under API status says "Couldn't connect http://apollo:4200/graphql/"
n
Hi @Simone Cittadini - that makes sense because the UI is running in your browser, not in the context of your container network. You'll need to expose the Apollo container on a discoverable network and then point the UI at it using the
graphql
variable.
s
ah ok, gonna try, thanks !
n
A side note about the UI image though: you'll need to re-pull the image before you set the
graphql_url
variable again; it works on a simple find-replace.
s
Thanks (I'm using portainer to deploy the stack, seems to find changes in env runtime).
👍 1