initial localstack setup

This commit is contained in:
Elmar Kresse
2025-08-12 10:39:39 +02:00
commit 149b10a643
10 changed files with 523 additions and 0 deletions

31
docker-compose.yaml Normal file
View File

@@ -0,0 +1,31 @@
services:
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
image: localstack/localstack
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
- DEBUG=${DEBUG:-0}
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
terraform:
build:
context: ./terraform
dockerfile: Dockerfile
volumes:
- ./terraform/scripts:/workspace
working_dir: /workspace
# interactive
stdin_open: true
tty: true
entrypoint: /bin/sh
depends_on:
- localstack
environment:
- AWS_ACCESS_KEY_ID=anaccesskey
- AWS_SECRET_ACCESS_KEY=asecretkey
- AWS_REGION=us-west-2