Skip to content

Commit 310a9f8

Browse files
x1ahMisty Stanley-Jones
authored andcommitted
fix docker-compose.yml have not link redis (docker#5602)
rt, if web have not link redis, `redis = Redis(host='redis', port=6379)` will can not recognize the host('redis')
1 parent 2ead7d5 commit 310a9f8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

compose/gettingstarted.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ the following:
8787
build: .
8888
ports:
8989
- "5000:5000"
90+
links:
91+
- redis
9092
redis:
9193
image: "redis:alpine"
9294

0 commit comments

Comments
 (0)