Skip to main content

localstack

Localstack & Mailhog

docker-compose.yml
services:
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"

localstack:
image: localstack/localstack-pro
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # external services port range
environment:
- DEBUG=${DEBUG-}
- DOCKER_HOST=unix:///var/run/docker.sock
- SMTP_HOST=mailhog:1025
- LS_LOG=trace
- EAGER_SERVICE_LOADING=1
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY-}
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
privileged: true