Created
May 22, 2024 10:21
-
-
Save atemate/5014e73aea24bad50646366616f26730 to your computer and use it in GitHub Desktop.
Docker-compose config for SNS running in a Localstack image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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