Skip to content

Commit

Permalink
fix docker-compose.yml have not link redis (docker#5602)
Browse files Browse the repository at this point in the history
rt, if web have not link redis, `redis = Redis(host='redis', port=6379)` will can not recognize the host('redis')
  • Loading branch information
x1ah authored and Misty Stanley-Jones committed Dec 26, 2017
1 parent 2ead7d5 commit 310a9f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compose/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ the following:
build: .
ports:
- "5000:5000"
links:
- redis
redis:
image: "redis:alpine"

Expand Down

0 comments on commit 310a9f8

Please sign in to comment.