先停docker 容器而且清空下redis
cat>docker-compose.ymldocker
redis:後端
image: redisapp
db:ide
image: postgres:9.4post
vote:3d
image: voting-appblog
ports:ip
- 5000:80get
links:
- redis
worker:
image: worker-app
links:
- db
- redis
result:
image: result-app
ports:
- 5001:80
links:
- db
docker-compose up -d
都起來了,感受有了docker compose 就不要k8s了啊
先後端都正常顯示了