-
Notifications
You must be signed in to change notification settings - Fork 2
/
dc-ls.yml
40 lines (37 loc) · 1.38 KB
/
dc-ls.yml
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
31
32
33
34
35
36
37
38
39
services:
localstack:
image: "${LS_IMAGE-localstack/localstack}:${LS_VERSION-latest}"
container_name: "${LS_MAIN_CONTAINER_NAME-localstack}"
stdin_open: true
tty: true
networks:
devnet:
environment:
- DOCKER_HOST=unix:///var/run/docker.sock
- MAIN_CONTAINER_NAME=${LS_MAIN_CONTAINER_NAME-localstack}
- EXTRA_CORS_ALLOWED_ORIGINS=*
- DISABLE_CORS_CHECKS=1
- DEBUG=${DEBUG-}
# - LS_LOG=trace
# how long to keep idle lambdas around
- LAMBDA_RUNTIME_ENVIRONMENT_TIMEOUT=15
# remove idle lambdas
- LAMBDA_REMOVE_CONTAINERS=1
# Tell Localstack to put Lambda containers on the same shared network
- LAMBDA_DOCKER_NETWORK=${DEVNET_NAME-devnet}
- KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY-}
# enable IAM checks. Only takes action if IAM_SOFT_MODE=0
- ENFORCE_IAM=${LS_ENFORCE_IAM-1}
# only check IAM do not enforce it
- IAM_SOFT_MODE=${LS_IAM_SOFT_MODE-1}
- OPENSEARCH_ENDPOINT_STRATEGY=port
- PROVIDER_OVERRIDE_CLOUDWATCH=v2
- DYNAMODB_REMOVE_EXPIRED_ITEMS=1
- DNS_NAME_PATTERNS_TO_RESOLVE_UPSTREAM=${LS_DNS_NAME_PATTERNS_TO_RESOLVE_UPSTREAM}
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "${LOCALSTACK_VOLUME_DIR:-/tmp/ls_volume}:/var/lib/localstack"
networks:
devnet:
name: ${DEVNET_NAME-devnet}
external: true