Files
terraform/docker-compose.yaml

31 lines
926 B
YAML

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