-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-compose.yml
35 lines (34 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
services:
app:
image: stavshamir/springwolf-sns-example:${SPRINGWOLF_VERSION}
links:
- localstack
environment:
- SPRING_CLOUD_AWS_ENDPOINT=http://localstack:4566
ports:
- "8080:8080"
depends_on:
- localstack
localstack:
image: localstack/localstack:2.2.0
environment:
- DEBUG=${DEBUG-}
- AWS_REGION=eu-central-1
- SERVICES=sqs,sns
ports:
- "4566:4566" # LocalStack Gateway
# - "4510-4559:4510-4559" # external services port range
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
localstack_setup:
image: localstack/localstack:2.2.0
links:
- localstack
depends_on:
- localstack
restart: "no"
entrypoint: [ "bash", "-c", "
awslocal --endpoint-url=http://localstack:4566 sns create-topic --name another-topic --region eu-central-1;
awslocal --endpoint-url=http://localstack:4566 sns create-topic --name example-topic --region eu-central-1;
" ]