-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
51 lines (41 loc) · 1.31 KB
/
docker-compose.yaml
File metadata and controls
51 lines (41 loc) · 1.31 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
localstack:
container_name: infra-operator-localstack
image: localstack/localstack:latest
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # External services port range
environment:
# Core configuration
- SERVICES=s3,ec2,rds,lambda,dynamodb,sqs,sns,kms,secretsmanager,elasticache,iam,sts
- DEBUG=1
- LAMBDA_EXECUTOR=docker
- DOCKER_HOST=unix:///var/run/docker.sock
# Persistence
- PERSISTENCE=1
# AWS Configuration
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
# Feature flags
- SKIP_SSL_CERT_DOWNLOAD=1
- EAGER_SERVICE_LOADING=1
volumes:
# Docker socket for Lambda execution
- /var/run/docker.sock:/var/run/docker.sock
# Persistence volume - usando diretório local ao invés de /tmp
- ./.localstack-data:/var/lib/localstack
# Init scripts (optional)
- ./hack/localstack-init.sh:/etc/localstack/init/ready.d/init.sh:ro
networks:
- infra-operator-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
networks:
infra-operator-net:
driver: bridge