AppsPaaSLocalstack

LocalStack

LocalStack is a fully functional local AWS cloud stack. This includes Lambda for serverless computation.

Directory Structure

    • .env
    • docker-compose.yml

docker-compose.yml

version: "3.8"
 
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"
    restart: unless-stopped

Resources

Website: https://localstack.cloud/

GitHub: https://github.com/localstack/localstack

Docker Hub: https://hub.docker.com/r/localstack/localstack

Configuration: https://docs.localstack.cloud/getting-started/installation/#docker-compose