title: Exception when running Spring Boot app inside of Docker
body: <p>I have a problem connecting to the config-server. I am not sure what am I doing wrong. I have configured server running in a docker container named &quot;config-server&quot; on port 8888.</p>
  <pre><code>http://config-server:8888. Will be trying the next url if available
  2020-08-10 17:38:35.196 ERROR 11052 --- [           main] o.s.boot.SpringApplication               : Application run failed
  
  java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing
      at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:148) ~[spring-cloud-config-client-2.2.3.RELEASE.jar:2.2.3.RELEASE]
  </code></pre>
  <p>discovery-server bootstrap.yml</p>
  <pre><code>spring:
    application:
      name: discovery-server
    cloud:
      config:
        uri: http://config-server:8888
        fail-fast: true
        retry:
          max-attempts: 20
  </code></pre>
  <p><strong>EDIT</strong><br />
  config-server Dockerfile</p>
  <pre><code>FROM openjdk:11.0-jre
  ADD ./target/config-server-0.0.1-SNAPSHOT.jar config-server-0.0.1-SNAPSHOT.jar
  ENTRYPOINT [&quot;java&quot;, &quot;-jar&quot;, &quot;/config-server-0.0.1-SNAPSHOT.jar&quot;]
  EXPOSE 8888
  </code></pre>
  <p>docker run -p 8888:8888 --name config-server 3deb982c96fe<br />
  Discavery-server is not running in docker. First I want to create its .jar file</p>