-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (27 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
30 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: "3.9"
services:
localstack:
networks:
- ls_network
container_name: localstack
image: localstack/localstack-pro:latest
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
- DEBUG=1 # enable more verbose logs
- DOCKER_HOST=unix:///var/run/docker.sock #unix socket to communicate with the docker daemon
- LOCALSTACK_HOST=localstack # where services are available from other containers
- ENFORCE_IAM=0 # enforce IAM policies
- LAMBDA_DOCKER_NETWORK=ls_network
- DISABLE_CUSTOM_CORS_APIGATEWAY=1
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY}
- EXTRA_CORS_ALLOWED_ORIGINS=http://localhost:3000
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./stack-bytes-lambda/target/apigw-lambda.jar:/etc/localstack/init/ready.d/target/apigw-lambda.jar"
- "./init-resources.sh:/etc/localstack/init/ready.d/init-resources.sh"
networks:
ls_network:
name: ls_network