-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 1.72 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
60
61
62
63
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,sts"
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=DEBUG"
# This must match 'initializedStreams' variable in AwsFunctionalTests
- "INITIALIZE_STREAMS=stream1:3,stream2:2,stream3:1,stream4:2,stream5:3,stream6:5,stream7:5,stream8:3,stream9:1,stream10:3,stream11:2"
- "SHOULD_PERSIST_DATA=true"
- "PERSIST_PATH=/tmp/datadir1"
healthcheck:
test: "curl --fail http://localhost:4568/healthcheck || exit 1"
interval: 5s
timeout: 5s
retries: 20
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"
command: "/awscli-tests.sh"
volumes:
- "./scripts/awscli-tests.sh:/awscli-tests.sh"
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:
name: ${DOCKER_NET_NAME}
external: true