initial localstack setup
This commit is contained in:
31
docker-compose.yaml
Normal file
31
docker-compose.yaml
Normal 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
|
Reference in New Issue
Block a user