Skip to content

Instantly share code, notes, and snippets.

@yarchiT
Last active May 22, 2024 14:53
Show Gist options
  • Select an option

  • Save yarchiT/79d24cac8c230d8a042634b3de4e8ff8 to your computer and use it in GitHub Desktop.

Select an option

Save yarchiT/79d24cac8c230d8a042634b3de4e8ff8 to your computer and use it in GitHub Desktop.
localstack aws s3 bucket docker configuration
version: '2.1'
services:
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack
network_mode: bridge
ports:
- "4566-4599:4566-4599"
- "${PORT_WEB_UI-8080}:${PORT_WEB_UI-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