generated from geoadmin/template-service-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (72 loc) · 1.88 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
services:
dynamodb-local:
command: "-jar DynamoDBLocal.jar -sharedDb"
image: "amazon/dynamodb-local:latest"
container_name: dynamodb-local
ports:
- "8080:8000"
init-dynamo:
image: amazon/aws-cli
command:
- dynamodb
- create-table
- --table-name
- test-db
- --attribute-definitions
- >-
[{
"AttributeName": "shortlink_id",
"AttributeType": "S"
}, {
"AttributeName": "url",
"AttributeType": "S"
}, {
"AttributeName": "staging",
"AttributeType": "S"
}]
- --key-schema
- AttributeName=shortlink_id,KeyType=HASH
- --global-secondary-indexes
- >-
{
"IndexName": "UrlIndex",
"KeySchema": [{
"AttributeName": "url",
"KeyType": "HASH"
}],
"Projection": {
"ProjectionType": "INCLUDE",
"NonKeyAttributes": ["shortlink_id", "url", "created"]
},
"ProvisionedThroughput": {
"ReadCapacityUnits": 1,
"WriteCapacityUnits": 1
}
}
- >-
{
"IndexName": "StagingsIndex",
"KeySchema": [{
"AttributeName": "staging",
"KeyType": "HASH"
}
],
"Projection": {
"ProjectionType": "INCLUDE",
"NonKeyAttributes": ["shortlink_id", "url", "created"]
},
"ProvisionedThroughput": {
"ReadCapacityUnits": 1,
"WriteCapacityUnits": 1
}
}
- --provisioned-throughput
- ReadCapacityUnits=1,WriteCapacityUnits=1
- --endpoint-url
- http://dynamodb-local:8000
links:
- dynamodb-local
environment:
- AWS_ACCESS_KEY_ID=dummy123
- AWS_SECRET_ACCESS_KEY=dummy123
- AWS_DEFAULT_REGION=wonderland