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
nicholas
06/23/2020, 7:15 AM
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
Simone Cittadini
06/23/2020, 7:16 AM
ah ok, gonna try, thanks !
n
nicholas
06/23/2020, 7:22 AM
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
Simone Cittadini
06/23/2020, 7:30 AM
Thanks (I'm using portainer to deploy the stack, seems to find changes in env runtime).