Skip to content

Instantly share code, notes, and snippets.

@miklosbagi
Forked from yarchiT/docker-compose.yml
Last active May 22, 2024 16:31
Show Gist options
  • Save miklosbagi/399735054bb4a4842892ca7053c2987e to your computer and use it in GitHub Desktop.
Save miklosbagi/399735054bb4a4842892ca7053c2987e to your computer and use it in GitHub Desktop.
localstack aws s3 bucket docker configuration
services:
localstack:
image: localstack/localstack
ports:
- "4566-4599:4566-4599"
- "8080:8080"
environment:
- SERVICES=s3 # we only need s3 bucket
- DEBUG=1
- DATA_DIR=/tmp/localstack/data # we need this to make our volume work
- DEFAULT_REGION=eu-west-1
- AWS_ACCESS_KEY_ID=testkey
- AWS_SECRET_ACCESS_KEY=testsecret
volumes:
- "./my_localstack_init/init:/tmp/localstack" # we mount our local my_localstack_init folder into tmp/localstack folder in container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment