25 lines
780 B
YAML
25 lines
780 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
localstack:
|
|
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-tesis}"
|
|
image: localstack/localstack:3.8
|
|
ports:
|
|
- "127.0.0.1:4566:4566"
|
|
- "127.0.0.1:4510-4559:4510-4559"
|
|
environment:
|
|
- DEBUG=${DEBUG:-0}
|
|
- SERVICES=s3,sns,sqs,lambda,iam,logs,cloudwatch,events
|
|
- DOCKER_HOST=unix:///var/run/docker.sock
|
|
- LAMBDA_EXECUTOR=docker
|
|
- LAMBDA_DOCKER_NETWORK=localstack-tesis_default
|
|
- AWS_DEFAULT_REGION=us-east-1
|
|
volumes:
|
|
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|