Giter Site home page Giter Site logo

spring-boot-consul-internal's Introduction

Spring Boot Consul External

This project demos the use of consul and feign in a Spring Boot Gradle project.

This is one of the two services for a complete demo.

Build


Java 11 is required.

gradlew clean build unpack
docker build --rm -t consul-internal .

Run


docker-compose up -d --no-deps --build consul-internal

Stop



docker-compose stop

Publish to local maven repository:

gradlew clean build publishToMavenLocal

Setup Consul

Docker

docker pull consul
docker run \
    -d \
    -p 8500:8500 \
    -p 8600:8600/udp \
    --name=consul \
    consul agent -dev -ui -node=consul -bootstrap-expect=1 -client=0.0.0.0

Installed

consul agent -dev -node consul

spring-boot-consul-internal's People

Contributors

bingqiao avatar

Watchers

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