generated from geoadmin/template-service-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (81 loc) · 1.97 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
services:
s3:
image: minio/minio
env_file: ./minio.env
command: server /data
volumes:
- type: bind
source: ${PWD}/.volumes/minio
target: /data
ports:
- 9090:9000
s3-client:
image: minio/mc
links:
- s3
env_file: ./minio.env
restart: on-failure
entrypoint: >
/bin/sh -c "
set +o history;
while ! echo > /dev/tcp/s3/9000;
do
echo waiting for minio;
sleep 1;
done;
echo minio server is up;
/usr/bin/mc alias set minio http://s3:9000 dummy123 dummy123;
/usr/bin/mc mb minio/test-bucket;
/usr/bin/mc policy set public minio/test-bucket;
exit 0;
"
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": "kml_id",
"AttributeType": "S"
}, {
"AttributeName": "admin_id",
"AttributeType": "S"
}]
- --key-schema
- AttributeName=kml_id,KeyType=HASH
- --global-secondary-indexes
- >-
{
"IndexName": "admin_id-index",
"KeySchema": [{
"AttributeName": "admin_id",
"KeyType": "HASH"
}],
"Projection": {
"ProjectionType": "ALL"
},
"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