forked from heremaps/xyz-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (60 loc) · 1.73 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
version: "3"
services:
xyz-hub:
image: "xyz-hub"
build:
context: "./"
container_name: "xyz-hub"
ports:
- "8080:8080"
depends_on:
- "postgres"
- "redis"
- "xyz-http-connector"
xyz-http-connector:
image: "xyz-hub"
build:
context: "./"
container_name: xyz-http-connector
ports:
- "9090:9090"
environment:
- LOCALSTACK_ENDPOINT=http://localstack:4566
depends_on:
- "postgres"
- "localstack"
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"
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"
hostname: localstack
ports:
- "4563-4599:4563-4599"
environment:
- SERVICES="s3,cloudwatch"
- PERSISTENCE=1
- DEBUG="true"
- AWS_ACCESS_KEY_ID=localstack
- AWS_SECRET_ACCESS_KEY=localstack
- AWS_DEFAULT_REGION=eu-west-1
volumes:
- $PWD/mock-servers/localstack/docker-entrypoint-initaws.d/01-create-bucket.sh:/etc/localstack/init/ready.d/init-aws.sh