Skip to content

Instantly share code, notes, and snippets.

@atemate
Created May 22, 2024 10:21
Show Gist options
  • Save atemate/5014e73aea24bad50646366616f26730 to your computer and use it in GitHub Desktop.
Save atemate/5014e73aea24bad50646366616f26730 to your computer and use it in GitHub Desktop.
Docker-compose config for SNS running in a Localstack image
version: "0.1"
services:
sns:
image: localstack/localstack
environment:
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
- DEBUG=${DEBUG:-0}
- SERVICES=sns
ports:
- "4566:4566"
- "4510-4559:4510-4559"
setup-sns:
depends_on: [sns]
image: amazon/aws-cli
env_file:
- .localstack.env
command:
- sns
- create-topic
- --name=my-topic
test:
depends_on: [sns]
image: python:3.9
env_file:
- .localstack.env
command:
- bash
- -c
- sleep infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment