new localstack compose script

master
Yik Teng Hie 4 years ago
parent a92451aae1
commit ef6ad30aec

@ -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

@ -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'
Loading…
Cancel
Save