fix docker-compose.yml have not link redis (#5602)

rt, if web have not link redis, `redis = Redis(host='redis', port=6379)` will can not recognize the host('redis')
This commit is contained in:
x1ah 2017-12-27 04:52:27 +08:00 committed by Misty Stanley-Jones
parent 2ead7d5dd3
commit 310a9f8f8c
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ the following:
build: .
ports:
- "5000:5000"
links:
- redis
redis:
image: "redis:alpine"