-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (78 loc) · 1.92 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3.8"
services:
dynamodb-local:
image: amazon/dynamodb-local:2.5.2
container_name: dynamodb-local
ports:
- "8000:8000"
healthcheck:
test:
[
"CMD-SHELL",
'[ "$(curl -s -o /dev/null -I -w ''%{http_code}'' http://localhost:8000)" == "400" ]',
]
interval: 10s
timeout: 10s
retries: 10
dynamodb-test:
image: amazon/dynamodb-local:2.5.2
container_name: dynamodb-test
ports:
- "9000:8000"
healthcheck:
test:
[
"CMD-SHELL",
'[ "$(curl -s -o /dev/null -I -w ''%{http_code}'' http://localhost:8000)" == "400" ]',
]
interval: 10s
timeout: 10s
retries: 10
profiles:
- test
dynamodb-admin:
image: aaronshaf/dynamodb-admin
container_name: dynamodb-admin
ports:
- "8001:8001"
environment:
DYNAMO_ENDPOINT: "http://dynamodb-local:8000"
AWS_REGION: "eu-west-1"
AWS_ACCESS_KEY_ID: local
AWS_SECRET_ACCESS_KEY: local
depends_on:
- dynamodb-local
cli-init-tables:
image: amazon/aws-cli
container_name: cli-init-tables
volumes:
- "./.dynamodb:/tmp/dynamo"
environment:
AWS_REGION: "eu-west-1"
AWS_ACCESS_KEY_ID: local
AWS_SECRET_ACCESS_KEY: local
depends_on:
- dynamodb-local
profiles:
- dev
working_dir: /tmp/dynamo
entrypoint:
- bash
command: '-c "/tmp/dynamo/init-db.sh http://dynamodb-local:8000"'
cli-init-tables-test:
image: amazon/aws-cli
container_name: cli-init-tables-test
volumes:
- "./.dynamodb:/tmp/dynamo"
environment:
AWS_REGION: "eu-west-1"
AWS_ACCESS_KEY_ID: local
AWS_SECRET_ACCESS_KEY: local
depends_on:
- dynamodb-test
profiles:
- test
working_dir: /tmp/dynamo
entrypoint:
- bash
command: '-c "/tmp/dynamo/init-db.sh http://dynamodb-test:8000"'