Simone Cittadini

    Simone Cittadini

    2 years ago
    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/"
    nicholas

    nicholas

    2 years ago
    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.
    Simone Cittadini

    Simone Cittadini

    2 years ago
    ah ok, gonna try, thanks !
    nicholas

    nicholas

    2 years ago
    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.
    Simone Cittadini

    Simone Cittadini

    2 years ago
    Thanks (I'm using portainer to deploy the stack, seems to find changes in env runtime).