Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Cannot make docker-compose work with api and ui .env files settings #29

Open
maiieul opened this issue Aug 2, 2019 · 0 comments
Open
Labels
docker Docker or docker compose

Comments

@maiieul
Copy link

maiieul commented Aug 2, 2019

I tried to launch the grand-stack-starter project with Docker by following the instructions in the README file but that didn't work.

To make it work, I had to change :
"GRAPHQL_URI=http://api:4000" in api/.env file to "GRAPHQL_URI=http://api:4000"
"REACT_APP_GRAPHQL_URI=http://localhost:4000" in ui/.env file to "REACT_APP_GRAPHQL_URI=http://localhost:4000/graphql"

I think it was because the UI could not send GET or POST requests to the server.
I might have added CORS with Express to make it work. But maybe it works without it too.

@ed42311 ed42311 added the docker Docker or docker compose label Aug 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docker Docker or docker compose
Projects
None yet
Development

No branches or pull requests

2 participants