-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.localstack.yml
More file actions
41 lines (37 loc) · 1.11 KB
/
docker-compose.localstack.yml
File metadata and controls
41 lines (37 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
31
32
33
34
35
36
37
38
39
40
version: '3.8'
services:
localstack:
container_name: localstack-s3
image: localstack/localstack:3.0
ports:
- "4566:4566" # LocalStack gateway
- "4510-4559:4510-4559" # external services port range
environment:
# LocalStack configuration
- DEBUG=${DEBUG:-0}
- SERVICES=s3
- DOCKER_HOST=unix:///var/run/docker.sock
- LOCALSTACK_HOST=localhost
- DATA_DIR=/var/lib/localstack/data
# S3 specific settings
- S3_SKIP_SIGNATURE_VALIDATION=1
- S3_SKIP_KMS_KEY_VALIDATION=1
# Avoid /tmp/localstack conflicts
- TMPDIR=/var/tmp/localstack
volumes:
- "localstack-data:/var/lib/localstack"
- "localstack-tmp:/var/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./localstack:/docker-entrypoint-initaws.d" # Init scripts
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
volumes:
localstack-data:
localstack-tmp:
networks:
default:
name: localstack-network