title: Setting up localstack resources in docker compose file results in connection aborted failure
body: <p>I have a docker compose file that looks like the following:</p>
  
  <pre><code>version: "3"
  
  services:
    localstack:
      image: localstack/localstack:latest
      ports:
        - "4567-4597:4567-4597"
        - "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
      environment:
        - SERVICES=s3
        - DOCKER_HOST=unix:///var/run/docker.sock
      volumes:
        - "/var/run/docker.sock:/var/run/docker.sock"
        - "/private${TMPDIR}:/tmp/localstack"
      networks:
        - my_awesome_network
  
    setup-resources:
      image: mesosphere/aws-cli
      volumes:
        - ./dev_env:/project/dev_env
      environment:
        - AWS_ACCESS_KEY_ID=dummyaccess
        - AWS_SECRET_ACCESS_KEY=dummysecret
        - AWS_DEFAULT_REGION=us-east-1
      entrypoint: /bin/sh -c
      command: &gt;
        "
          sleep 10;
          # aws kinesis create-stream --endpoint-url=http://localstack:4568 --stream-name my_stream --shard-count 1;
          aws --endpoint-url=http://localhost:4572 s3 mb s3://demo-bucket
        "
      networks:
        - my_awesome_network
      depends_on:
        - localstack
  networks:
    my_awesome_network:
  </code></pre>
  
  <p>which has been copied from <a href="https://itnext.io/docker-compose-aws-localstack-why-not-both-fc8a1db84eca" rel="nofollow noreferrer">this</a> blog post that I have found, but when I run <code>docker-compose up</code> the bucket fails to create with the following error: <code>('Connection aborted.', error(99, 'Address not available'))</code></p>