docker-compose.yml 600 B

1234567891011121314151617
  1. version: "3.8"
  2. services:
  3. localstack:
  4. container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
  5. image: localstack/localstack:1.3.1
  6. ports:
  7. - "127.0.0.1:4566:4566" # LocalStack Gateway
  8. - "127.0.0.1:4510-4559:4510-4559" # external services port range
  9. environment:
  10. - LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY}
  11. - DEBUG=${DEBUG-}
  12. - LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR-}
  13. - DOCKER_HOST=unix:///var/run/docker.sock
  14. volumes:
  15. - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
  16. - "/var/run/docker.sock:/var/run/docker.sock"