Giter Club home page Giter Club logo

dubbo-docker's Introduction

Dubbo in Docker Example

Dubbo running in Docker, packaged as a springboot application.

Services

This demo consistes three services:

  • a zookeper instance
  • a service producer
  • a service consumer

The service producer exposes a Greeting service through RPC, service consumer access the producer.

Zookeeper

Run a docker image.

Service Producer

Code in service-producer. API defined in service-api.

Build docker image:

cd service-producer
mvn package
docker build -t producer .

Service Consumer

Code in service-consumer.

Build docker image:

cd service-consumer
mvn package
docker build -t consumer .

Run

Use docker-compose command to run it.

cd docker
docker-compose up -d

Verify that all works:

$curl http://localhost:8899/
Greetings from Dubbo Docker

Run it on Alibaba Cloud

Use docker/docker-compose-acs.yml to deploy this application to Aliyun Container Service (Alibaba Cloud).

2017.11.30 Update: Add compose v3 sample yml file: docker/docker-compose-v3.yml

dubbo-docker's People

Contributors

binblee avatar wangzheng422 avatar

Watchers

James Cloos avatar  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.