Coder Social home page Coder Social logo

tanghaoran666 / c-docker-and-docker-compose-basics-homework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qinyunwang/c-docker-and-docker-compose-basics-homework

0.0 0.0 0.0 84 KB

Homework for Docker and Docker Compose Basics

Java 81.25% Dockerfile 18.75%

c-docker-and-docker-compose-basics-homework's Introduction

Docker and Docker Compose Basics Homework

Homework for Docker and Docker Compose Basics

作业内容

  • 本项目包含alice和bob两个Spring Boot服务的骨架。
  • 请在两个服务中分别添加/hello接口
  • alice的/hello接口直接调用bob的/hello接口
  • bob的/hello接口返回"Hello from Bob!"字符串
  • 通过Dockerfile和Docker Compose将两个服务部署起来,使得可以访问alice的/hello接口

最终效果:

  • 浏览器访问http://localhost:8080/hello
  • 返回"Hello from Bob!"字符串

提示:

  • 可以用RestTemplate实现接口调用
  • 接口调用时的host是Docker Compose中定义的服务名

c-docker-and-docker-compose-basics-homework's People

Contributors

tanghaoran666 avatar zhaozhangtw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.