mirror of https://github.com/docker/docs.git
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:
parent
2ead7d5dd3
commit
310a9f8f8c
|
@ -87,6 +87,8 @@ the following:
|
|||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
links:
|
||||
- redis
|
||||
redis:
|
||||
image: "redis:alpine"
|
||||
|
||||
|
|
Loading…
Reference in New Issue