version: '2.1' services: localstack: container_name: "localstack" # Container name in your docker image: localstack/localstack:latest # Will download latest version of localstack ports: - "4566:4566" # Default port forward - "9200:4571" # Elasticsearch port forward environment: - SERVICES=es, s3, ec2, dynamodb, elasticcache, sqs #AWS Services that you want in your localstack - DEBUG=1 #Debug level 1 if you want to logs, 0 if you want to disable - START_WEB=0 - LAMBDA_REMOTE_DOCKER=0 - DATA_DIR=/tmp/localstack/data - DEFAULT_REGION=us-east-1 volumes: - './.localstack:/tmp/localstack' - '/var/run/docker.sock:/var/run/docker.sock'