forked from heremaps/xyz-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dynamodb.yml
77 lines (77 loc) · 2.7 KB
/
docker-compose-dynamodb.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
version: "3"
services:
xyz-hub:
image: "xyz-hub"
build:
context: "./"
container_name: "xyz-hub"
ports:
- "8080:8080"
depends_on:
- "localstack"
- "dynamodb"
- "postgres"
- "redis"
- "xyz-http-connector"
environment:
- LOCALSTACK_ENDPOINT=http://localstack:4566
- SPACES_DYNAMODB_TABLE_ARN=arn:aws:dynamodb:dynamodb:000000008000:table/xyz-hub-local-spaces
- CONNECTORS_DYNAMODB_TABLE_ARN=arn:aws:dynamodb:dynamodb:000000008000:table/xyz-hub-local-connectors
- PACKAGES_DYNAMODB_TABLE_ARN=arn:aws:dynamodb:dynamodb:000000008000:table/xyz-hub-local-packages
- SUBSCRIPTIONS_DYNAMODB_TABLE_ARN=arn:aws:dynamodb:dynamodb:000000008000:table/xyz-hub-local-subscriptions
- TAGS_DYNAMODB_TABLE_ARN=arn:aws:dynamodb:dynamodb:000000008000:table/xyz-hub-local-tags
xyz-http-connector:
image: "xyz-hub"
build:
context: "./"
container_name: xyz-http-connector
ports:
- "9090:9090"
environment:
- LOCALSTACK_ENDPOINT=http://localstack:4566
- JOBS_DYNAMODB_TABLE_ARN=arn:aws:dynamodb:dynamodb:000000008000:table/xyz-hub-local-jobs
depends_on:
- "localstack"
- "dynamodb"
- "postgres"
command: java -cp xyz-hub-service.jar com.here.xyz.httpconnector.CService
postgres:
image: "xyz-postgres"
build:
context: "./"
dockerfile: "Dockerfile-postgres"
container_name: "postgres"
ports:
- "5432:5432"
redis:
image: "redis"
container_name: "redis"
ports:
- "6379:6379"
dynamodb:
image: "amazon/dynamodb-local"
container_name: "dynamodb"
ports:
- "8000:8000"
command: ["-jar", "DynamoDBLocal.jar", "-sharedDb"]
swagger-ui:
image: "swaggerapi/swagger-ui"
container_name: "swagger-ui"
ports:
- "8888:8080"
environment:
- SWAGGER_JSON_URL=http://localhost:8080/hub/static/openapi/stable.yaml
localstack:
image: "localstack/localstack:latest"
hostname: localstack
ports:
- "4563-4599:4563-4599"
environment:
- SERVICES="s3,cloudwatch"
- PERSISTENCE=0
- DEBUG=0
- AWS_ACCESS_KEY_ID=localstack
- AWS_SECRET_ACCESS_KEY=localstack
- AWS_DEFAULT_REGION=eu-west-1
volumes:
- ./mock-servers/localstack/docker-entrypoint-initaws.d/01-create-bucket.sh:/etc/localstack/init/ready.d/init-aws.sh