From ef6ad30aec6cd9edb91af2538cf6b83141bcd196 Mon Sep 17 00:00:00 2001 From: Yik Teng Hie Date: Sat, 2 Apr 2022 10:53:35 +0800 Subject: [PATCH] new localstack compose script --- localstack/README.md | 2 +- localstack/docker-compose.yml | 22 ++++++++++------------ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/localstack/README.md b/localstack/README.md index d6d01e4..d862fd4 100644 --- a/localstack/README.md +++ b/localstack/README.md @@ -26,7 +26,7 @@ $ docker exec -it mongo-5-mongo-1 mongosh "mongodb://root@localhost:27017" $ docker-compose down ``` - +https://dev.to/goodidea/how-to-fake-aws-locally-with-localstack-27me Ports diff --git a/localstack/docker-compose.yml b/localstack/docker-compose.yml index 2f1c780..2d3b449 100644 --- a/localstack/docker-compose.yml +++ b/localstack/docker-compose.yml @@ -1,17 +1,15 @@ -version: "2.1" - +version: '3.2' services: localstack: - image: localstack/localstack - container_name: localstack + image: localstack/localstack:latest + container_name: localstack_demo ports: - - "4566-4599:4566-4599" # ports of the different services - - "9000:9000" + - '4563-4599:4563-4599' + - '8055:8080' environment: - - SERVICES=sqs,dynamodb # a list of desired services you want to use. - - DEFAULT_REGION=eu-west-1 # This is the region where your localstack mocks to be running + - SERVICES=s3 + - DEBUG=1 - DATA_DIR=/tmp/localstack/data - - PORT_WEB_UI=9000 - - LAMBDA_EXECUTOR=local - - DOCKER_HOST=unix:///var/run/docker.sock - - START_WEB=1 + volumes: + - './.localstack:/tmp/localstack' + - '/var/run/docker.sock:/var/run/docker.sock' \ No newline at end of file