1编写java程序2编写Dockerfile 3编写docker-compose.yml build. 用本目录的dockerfileimage :kuangapp 随便给他起个名字depends_on : -redis 依赖 redisredis: image:'library/redis:alpine' 用本地的redis镜像