An open API service indexing awesome lists of open source software.

https://github.com/fo0/springcloudconsulexample


https://github.com/fo0/springcloudconsulexample

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# SpringCloudConsulExample

### install consul "server" => main server
```bash
docker run -d -p 8500:8500 -p 8600:8600/udp --name=badger consul agent -server -ui -node=server-1 -bootstrap-expect=1 -client=0.0.0.0
```

### install consul "agent" => listeners for managing the applications, this is the entry point for the services
Let the docker log "open", do not close it, because you can see the logs when your services register itself
```bash
docker run --name=fox consul agent -node=client-1 -join=172.17.0.2
```

### check installed consul applications at the main "server"
```bash
docker exec badger consul members
```

### Check Consul UI
```http://localhost:8500/```

References
- https://learn.hashicorp.com/consul/day-0/containers-guide
- https://spring.io/projects/spring-cloud-consul