forked from heremaps/xyz-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dynamodb.yml
58 lines (58 loc) · 2 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
version: "3"
services:
xyz-hub:
image: "xyz-hub"
build:
context: "./"
container_name: "xyz-hub"
ports:
- "8080:8080"
depends_on:
- "postgres"
- "redis"
- "xyz-http-connector"
- "dynamodb"
environment:
- 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
- JOBS_DYNAMODB_TABLE_ARN=arn:aws:dynamodb:dynamodb:000000008000:table/xyz-hub-local-jobs
- 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"
depends_on:
- "postgres"
- "dynamodb"
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