-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.containerized.yml
141 lines (133 loc) · 4.86 KB
/
docker-compose.containerized.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: '3'
services:
kafka-broker-1:
command: [ "zookeeper", "2181", "1", "kafka-broker-1", "9091" ]
kafka-broker-2:
command: [ "zookeeper", "2181", "2", "kafka-broker-2", "9092" ]
kafka-broker-3:
command: [ "zookeeper", "2181", "3", "kafka-broker-3", "9093" ]
task-processor:
build:
context: ./app/service
dockerfile: Dockerfile
image: custom/app/service
volumes:
- ./app/service/bin/task-processor-0.0.1-SNAPSHOT.jar:/opt/app/bin/app.jar
- ./app/service/ks-state:/var/lib/ks-state
environment:
DEPS: "kafka-broker-1:19091, kafka-broker-2:19092, kafka-broker-3:19093, schemaregistry:8081, keycloak:8080"
SERVER_PORT: 8080
BROKER_1: kafka-broker-1:19091
BROKER_2: kafka-broker-2:19092
BROKER_3: kafka-broker-3:19093
SR_PROT: http
SR_HOST: schemaregistry
SR_PORT: 8081
IDP_PROT: http
IDP_HOST: keycloak
IDP_PORT: 8080
STATE_DIR_ROOT: /var/lib/ks-state
labels:
- "traefik.enable=true"
- "traefik.http.routers.task-processor.rule=Host(`web.poc.local`) && PathPrefix(`/api/task/processor`)"
- "traefik.http.routers.task-processor.entrypoints=http"
- "traefik.http.routers.task-processor.service=task-processor-service"
- "traefik.http.services.task-processor-service.loadbalancer.server.port=8080"
task-reader:
build:
context: ./app/service
dockerfile: Dockerfile
image: custom/app/service
volumes:
- ./app/service/bin/task-reader-0.0.1-SNAPSHOT.jar:/opt/app/bin/app.jar
environment:
DEPS: "appdb:5432, keycloak:8080"
SERVER_PORT: 8080
IDP_PROT: http
IDP_HOST: keycloak
IDP_PORT: 8080
DB_HOST: appdb
DB_PORT: 5432
DB_NAME: ${APP_DB_NAME}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
labels:
- "traefik.enable=true"
- "traefik.http.routers.task-reader.rule=Host(`web.poc.local`) && PathPrefix(`/api/task/reader`)"
- "traefik.http.routers.task-reader.entrypoints=http"
- "traefik.http.routers.task-reader.service=task-reader-service"
- "traefik.http.services.task-reader-service.loadbalancer.server.port=8080"
task-writer:
build:
context: ./app/service
dockerfile: Dockerfile
image: custom/app/service
volumes:
- ./app/service/bin/task-writer-0.0.1-SNAPSHOT.jar:/opt/app/bin/app.jar
environment:
DEPS: "kafka-broker-1:19091, kafka-broker-2:19092, kafka-broker-3:19093, schemaregistry:8081, keycloak:8080"
SERVER_PORT: 8080
BROKER_1: kafka-broker-1:19091
BROKER_2: kafka-broker-2:19092
BROKER_3: kafka-broker-3:19093
SR_PROT: http
SR_HOST: schemaregistry
SR_PORT: 8081
IDP_PROT: http
IDP_HOST: keycloak
IDP_PORT: 8080
labels:
- "traefik.enable=true"
- "traefik.http.routers.task-writer.rule=Host(`web.poc.local`) && PathPrefix(`/api/task/writer`)"
- "traefik.http.routers.task-writer.entrypoints=http"
- "traefik.http.routers.task-writer.service=task-writer-service"
- "traefik.http.services.task-writer-service.loadbalancer.server.port=8080"
user-reader:
build:
context: ./app/service
dockerfile: Dockerfile
image: custom/app/service
volumes:
- ./app/service/bin/user-reader-0.0.1-SNAPSHOT.jar:/opt/app/bin/app.jar
environment:
DEPS: "appdb:5432, keycloak:8080"
SERVER_PORT: 8080
IDP_PROT: http
IDP_HOST: keycloak
IDP_PORT: 8080
DB_HOST: appdb
DB_PORT: 5432
DB_NAME: ${APP_DB_NAME}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
labels:
- "traefik.enable=true"
- "traefik.http.routers.user-reader.rule=Host(`web.poc.local`) && PathPrefix(`/api/user/reader`)"
- "traefik.http.routers.user-reader.entrypoints=http"
- "traefik.http.routers.user-reader.service=user-reader-service"
- "traefik.http.services.user-reader-service.loadbalancer.server.port=8080"
user-writer:
build:
context: ./app/service
dockerfile: Dockerfile
image: custom/app/service
volumes:
- ./app/service/bin/user-writer-0.0.1-SNAPSHOT.jar:/opt/app/bin/app.jar
environment:
DEPS: "kafka-broker-1:19091, kafka-broker-2:19092, kafka-broker-3:19093, schemaregistry:8081, keycloak:8080"
SERVER_PORT: 8080
BROKER_1: kafka-broker-1:19091
BROKER_2: kafka-broker-2:19092
BROKER_3: kafka-broker-3:19093
SR_PROT: http
SR_HOST: schemaregistry
SR_PORT: 8081
IDP_PROT: http
IDP_HOST: keycloak
IDP_PORT: 8080
labels:
- "traefik.enable=true"
- "traefik.http.routers.user-writer.rule=Host(`web.poc.local`) && PathPrefix(`/api/user/writer`)"
- "traefik.http.routers.user-writer.entrypoints=http"
- "traefik.http.routers.user-writer.service=user-writer-service"
- "traefik.http.services.user-writer-service.loadbalancer.server.port=8080"