A simple eureka server with the possibility to have 2 peers running that are aware of each other (server failover). For the peers the hosts and the ports can be specified.
The docker can be started with first pulling the latest from the docker hub:
docker pull daflockinger/heureka
and started with:
docker run -d daflockinger/heureka
For peer1 add this to the docker run command:
-Dspring.profiles.active=peer1
For peer2 add this to the docker run command:
-Dspring.profiles.active=peer2
The peers hostname and port can be configured with adding these environment variables to the docker:
| Path | Description |
|---|---|
| PEER1_PORT | Port of the first peer (default is 8761) |
| PEER1_HOSTNAME | Hostname of the first peer (default is 'peer1') |
| PEER2_PORT | Port of the second peer (default is 8762) |
| PEER2_HOSTNAME | Hostname of the second peer (default is 'peer2') |
Github repository of the project: https://github.com/daflockinger/heureka
Content type
Image
Digest
Size
130.5 MB
Last updated
over 9 years ago
docker pull daflockinger/heureka