Simple Eureka Server it's a secure Service Discovery for easy launch and using, based on the Spring Boot 4 and
Eureka Server.
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>
I have a repository on Docker Hub
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}