Files
upstream-watermill/_examples/pubsubs/aws-sqs/docker-compose.yml
2026-09-15 21:27:46 +05:00

25 lines
540 B
YAML

services:
server:
image: golang:1.25
restart: unless-stopped
volumes:
- .:/app
- $GOPATH/pkg/mod:/go/pkg/mod
working_dir: /app
command: go run main.go
localstack:
image: localstack/localstack:3.8
environment:
- SERVICES=sqs,sns
- AWS_DEFAULT_REGION=us-east-1
- EDGE_PORT=4566
ports:
- "4566-4597:4566-4597"
healthcheck:
test: awslocal sqs list-queues && awslocal sns list-topics
interval: 5s
timeout: 5s
retries: 5
start_period: 30s