-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.yml
78 lines (78 loc) · 2.49 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
version: "3"
services:
xyz-hub:
image: "xyz-hub"
build:
context: "./"
container_name: "xyz-hub"
ports:
- "8080:8080"
depends_on:
- "postgres"
- "redis"
- "xyz-http-connector"
- "aws-localstack"
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"
- "aws-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:
- "8081:8080"
- "8888:8080"
environment:
- QUERY_CONFIG_ENABLED=true
- SWAGGER_JSON_URL=http://localhost:8080/hub/static/openapi/stable.yaml
aws-localstack:
image: "localstack/localstack:3.5.0"
container_name: "localstack-main"
hostname: localstack
ports:
- "4563-4599:4563-4599"
extra_hosts:
- host.docker.internal:host-gateway
environment:
- PERSISTENCE=0
- DEBUG=1
- AWS_ACCESS_KEY_ID=localstack
- AWS_SECRET_ACCESS_KEY=localstack
- AWS_DEFAULT_REGION=eu-west-1
- EXTRA_CORS_ALLOWED_ORIGINS=http://localhost:5001
- LAMBDA_DOCKER_FLAGS=--add-host host.docker.internal:host-gateway
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./xyz-hub-test/src/test/resources/mock-servers/localstack/docker-entrypoint-initaws.d/01-create-bucket.sh:/etc/localstack/init/ready.d/init-aws.sh"
- "./xyz-jobs/xyz-job-steps/src/main/bash:/home/localstack/job-steps-scripts"
- "./xyz-jobs/xyz-job-steps:/home/localstack/job-steps"
s3-explorer:
image: aws-js-s3-explorer
build:
context: ./
dockerfile: Dockerfile-s3-explorer
container_name: s3-explorer
ports:
- "5001:8080"