Skip to content

justedlev/simple-eureka-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Simple Eureka Server

๐Ÿšš Service Discovery

language framework Docker Image Version license stars issues

๐Ÿ“‹ About

Simple Eureka Server it's a secure Service Discovery for easy launch and using, based on the Spring Boot 3 and Eureka Server.

โ–ถ๏ธ Run

๐Ÿ› ๏ธ Intellij

To run the app you can use simple run configuration, that based on .env and jvm options

<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="Default" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
    <option name="envFilePaths">
      <option value="$PROJECT_DIR$/.env" />
    </option>
    <module name="simple-eureka-server" />
    <selectedOptions>
      <option name="environmentVariables" />
    </selectedOptions>
    <option name="SPRING_BOOT_MAIN_CLASS" value="io.justedlev.msrv.ssr.SimpleEurekaServerApplication" />
    <option name="VM_PARAMETERS" value="@.vmoptions" />
    <method v="2">
      <option name="Make" enabled="true" />
    </method>
  </configuration>
</component>

๐Ÿšข Docker

I have a repository on Docker Hub

๐Ÿ—‚๏ธ Docker compose

Simple command to run the container: docker compose up -d --build

The full compose.yaml that I personally use with the .env

name: justedlev-msrv
services:
  service-registry:
    container_name: ${SPRING_APPLICATION_NAME}
    image: justedlev/simple-eureka-server:latest
    build:
      context: docs
    env_file:
      - .env
    ports:
      - "8761:${SERVER_PORT}"
    healthcheck:
      interval: 5s
      timeout: 3s
      test: [ "CMD", "curl", "-f", "http://localhost:${SERVER_PORT}/actuator/health", "||", "exit 1" ]
    volumes:
      - ./logs:${LOGGING_FILE_PATH}