forked from etspaceman/kinesis-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (59 loc) · 1.62 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '2.4'
services:
dynamodb:
command: "-jar DynamoDBLocal.jar -inMemory"
image: "amazon/dynamodb-local:latest"
working_dir: /home/dynamodblocal
ports:
- "8000:8000"
localstack:
image: "localstack/localstack:latest"
environment:
- "SERVICES=cloudwatch"
- "USE_SSL=true"
healthcheck:
test: "awslocal cloudwatch list-metrics"
interval: 5s
timeout: 10s
start_period: 10s
ports:
- "4566:4566"
depends_on:
- dynamodb
kinesis-mock:
image: "ghcr.io/etspaceman/kinesis-mock:${DOCKER_TAG_VERSION}"
environment:
- "LOG_LEVEL=TRACE"
- "INITIALIZE_STREAMS=my-initial-stream:3,my-other-initial-stream:2" # This must match 'initializedStreams' variable in AwsFunctionalTests
healthcheck:
test: "curl --fail http://localhost:4568/healthcheck || exit 1"
interval: 5s
timeout: 5s
retries: 5
ports:
- "4567:4567"
- "4568:4568"
awscli:
image: amazon/aws-cli:latest
environment:
- "AWS_ACCESS_KEY_ID=foo"
- "AWS_SECRET_ACCESS_KEY=bar"
- "AWS_DEFAULT_REGION=us-east-1"
entrypoint: "bash -c"
command: "'aws --endpoint-url 'https://kinesis-mock:4567/' --no-verify-ssl kinesis list-streams && exit 0 || exit 1'"
depends_on:
kinesis-mock:
condition: service_healthy
ready:
image: "library/hello-world"
depends_on:
localstack:
condition: service_healthy
kinesis-mock:
condition: service_healthy
awscli:
condition: service_completed_successfully
networks:
default:
external:
name: ${DOCKER_NET_NAME}