consul:
  command: -server -bootstrap -advertise 192.168.99.100
  image: progrium/consul:latest
  hostname: 192.168.99.100.xip.io
  ports:
  - "8300:8300"
  - "8400:8400"
  - "8500:8500"
  - "8600:53/udp"
  # environment:
  #   SERVICE_CHECK_SCRIPT: nc $SERVICE_IP $SERVICE_PORT | grep OK
  #   SERVICE_CHECK_TTL: 5s

registrator:
  command: consul://consul:8500 -resync 5 -ttl-refresh 5
  image: progrium/registrator:latest
  links:
  - consul
  volumes:
  - "/var/run/docker.sock:/tmp/docker.sock"

springbootadmin:
  image: depot.enovation.nl/wharf/spring-boot-admin:latest
  ports:
    - "18080:8080"
    - "8081"
  environment:
    CONSUL_HOST: 192.168.99.100
    DISCOVERY_ENABLED: true

helloworld:
  build: spring-boot-helloworld-sample/.
  ports:
    - "8080"
    - "8081"
  environment:
    SERVICE_TAGS: spring-boot-management

consul:
  command: -server -bootstrap -advertise 192.168.99.100
  image: progrium/consul:latest
  hostname: 192.168.99.100.xip.io
  ports:
  - "8300:8300"
  - "8400:8400"
  - "8500:8500"
  - "8600:53/udp"
  # environment:
  #   SERVICE_CHECK_SCRIPT: nc $SERVICE_IP $SERVICE_PORT | grep OK
  #   SERVICE_CHECK_TTL: 5s

registrator:
  command: consul://consul:8500 -resync 5 -ttl-refresh 5
  image: progrium/registrator:latest
  links:
  - consul
  volumes:
  - "/var/run/docker.sock:/tmp/docker.sock"

springbootadmin:
  image: depot.enovation.nl/wharf/spring-boot-admin:latest
  ports:
    - "18080:8080"
    - "8081"
  environment:
    CONSUL_HOST: 192.168.99.100
    DISCOVERY_ENABLED: true
  command: java -Djava.security.egd=file:/dev/./urandom -jar /app/spring-boot-admin.jar

helloworld:
  build: spring-boot-helloworld-sample/.
  ports:
    - "8080"
    - "8081"
  environment:
    SERVICE_TAGS: spring-boot-management
  command: java -Djava.security.egd=file:/dev/./urandom -jar /app/application.jar

Make java boot time faster using security urandom
Make java boot time faster using security urandom
