Skip to content

Commit

Permalink
Remove hardcoded Parse Server IP (fbsamples#208)
Browse files Browse the repository at this point in the history
There's an easier way to link containers:
https://docs.docker.com/compose/networking/
  • Loading branch information
frantic authored Apr 5, 2018
1 parent 7b997be commit 12aaa42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ services:
- "4040:4040"
graphql:
build: ./server/graphql
environment:
- PARSE_URL=http://parse:1337/parse
ports:
- "4000:4000"
1 change: 0 additions & 1 deletion server/graphql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ ADD . .
RUN ["npm", "install"]
RUN ["npm", "run", "build"]

ENV PARSE_URL http://192.168.65.1:1337/parse
ENTRYPOINT [ "node", "lib/index.js" ]

0 comments on commit 12aaa42

Please sign in to comment.