admin管理员组

文章数量:1430484

I am running the application with the following docker-compose.yml to verify localstack image is running. But fails with an error message,

"Suppressed: .springframework.boot.dockerpose.lifecycle.ServiceNotReadyException: Immediate disconnect while connecting to port 4510".

o.s.boot.dockerpose.core.DockerCli  [0;39m [2m:[0;39m  Container localstack-main  Healthy
o.s.boot.SpringApplication              [0;39m [2m:[0;39m Application run failed

Did I miss anything?

services:
  localstack:
    container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
    image: localstack/localstack
    ports:
      - "127.0.0.1:4566:4566"            # LocalStack Gateway
      - "127.0.0.1:4510-4559:4510-4559"  # external services port range
    environment:
      # LocalStack configuration: /references/configuration/
      - DEBUG=${DEBUG:-0}
    volumes:
      - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"

Running as spring boot application.

本文标签: Running spring boot application with dockercomposeyml fails (with localstack image)Stack Overflow