Skip to content

Instantly share code, notes, and snippets.

@marcos-inja
Created February 15, 2024 15:02
Show Gist options
  • Save marcos-inja/69f3770f14f353fcce6d8061f49d419c to your computer and use it in GitHub Desktop.
Save marcos-inja/69f3770f14f353fcce6d8061f49d419c to your computer and use it in GitHub Desktop.
Localstack docker-compose
version: "3.8"
services:
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack
ports:
- "127.0.0.1:4566:4566"
- "127.0.0.1:4510-4559:4510-4559"
- "127.0.0.1:53:53"
- "127.0.0.1:53:53/udp"
- "127.0.0.1:443:443"
environment:
- DEBUG=${DEBUG-}
- PERSISTENCE=${PERSISTENCE-}
- LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR-}
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment