-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 1.16 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
version: '3.4'
services:
redis:
image: redis:alpine
ports:
- 6379:6379
command: redis-server --appendonly yes
redis-insight:
image: redislabs/redisinsight:latest
ports:
- 8001:8001
environment:
- REDIS_URI=redis://redis:6379
dynamodb-local:
image: amazon/dynamodb-local
ports:
- 8002:8000
command: '-jar DynamoDBLocal.jar -inMemory -sharedDb'
working_dir: /home/dynamodblocal
healthcheck:
test:
[
'CMD-SHELL',
'[ "$(curl -s -o /dev/null -I -w ''%{http_code}'' http://localhost:8000)" == "400" ]',
]
interval: 10s
timeout: 10s
retries: 10
dynamodb-local-setup:
depends_on:
dynamodb-local:
condition: service_healthy
image: amazon/aws-cli
volumes:
- './tests_helpers/dynamodb_schemas:/tmp/dynamo'
environment:
AWS_ACCESS_KEY_ID: 'accessKeyId'
AWS_SECRET_ACCESS_KEY: 'secretAccessKey'
AWS_REGION: 'us-east-1'
entrypoint:
- bash
command: '-c "for f in /tmp/dynamo/*.json; do aws dynamodb create-table --endpoint-url "http://dynamodb-local:8000" --cli-input-json file://"$${f#./}"; done"'