-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-native.yml
103 lines (96 loc) · 2.88 KB
/
docker-compose-native.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
version: "3"
services:
vote-db:
image: postgres:14
container_name: vote-db
ports:
- "5432"
environment:
POSTGRES_USER: cameldemo
POSTGRES_PASSWORD: cameldemo
POSTGRES_DB: votedb
votes-kafka:
image: quay.io/strimzi/kafka:0.35.1-kafka-3.4.0
container_name: kafka-no-keeper-bootstrap
command:
- "sh"
- "-c"
- "export CLUSTER_ID=$$(bin/kafka-storage.sh random-uuid) && bin/kafka-storage.sh format -t $${CLUSTER_ID} -c config/kraft/server.properties && bin/kafka-server-start.sh config/kraft/server.properties --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS}"
ports:
- "9092:9092"
environment:
LOG_DIR: /tmp/logs
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://votes-kafka:9092
cameldemo-ui:
image: quay.io/kevindubois/cameldemo-ui:1.0.1
pull_policy: build
build:
context: ./ui
dockerfile: src/main/docker/Dockerfile.native
container_name: cameldemo-ui
depends_on:
- cameldemo-processor
- cameldemo-ingester
ports:
- "8080:8080"
environment:
INGESTER_URL: http://localhost:8081
PROCESSOR_URL: http://localhost:8082
QUARKUS_REST-CLIENT_PROCESSOR-API_URL: http://cameldemo-processor:8080
QUARKUS_PROFILE: compose
QUARKUS_HTTP_CORS: false
QUARKUS_KUBERNETES-CONFIG_ENABLED: false
restart: on-failure
networks:
default:
aliases:
- cameldemo
cameldemo-ingester:
image: quay.io/kevindubois/cameldemo-ingester:1.0.1
pull_policy: build
build:
context: ./ingester
dockerfile: src/main/docker/Dockerfile.native
container_name: cameldemo-ingester
depends_on:
- votes-kafka
ports:
- "8081:8080"
environment:
KAFKA_BOOTSTRAP_SERVERS: "votes-kafka:9092"
CAMEL_COMPONENT_KAFKA_BROKERS: "votes-kafka:9092"
QUARKUS_PROFILE: compose
QUARKUS_HTTP_CORS: false
QUARKUS_KUBERNETES-CONFIG_ENABLED: false
restart: on-failure
networks:
default:
aliases:
- cameldemo
cameldemo-processor:
image: quay.io/kevindubois/cameldemo-processor:1.0.1
pull_policy: build
build:
context: ./processor
dockerfile: src/main/docker/Dockerfile.native
container_name: cameldemo-processor
depends_on:
- vote-db
- votes-kafka
ports:
- "8082:8080"
environment:
KAFKA_BOOTSTRAP_SERVERS: "votes-kafka:9092"
CAMEL_COMPONENT_KAFKA_BROKERS: "votes-kafka:9092"
QUARKUS_PROFILE: compose
QUARKUS_DATASOURCE_USERNAME: cameldemo
QUARKUS_DATASOURCE_PASSWORD: cameldemo
QUARKUS_DATASOURCE_JDBC_URL: "jdbc:postgresql://vote-db:5432/votedb"
QUARKUS_HTTP_CORS: false
QUARKUS_KUBERNETES-CONFIG_ENABLED: false
QUARKUS_KUBERNETES-CONFIG_SECRETS_ENABLED: false
restart: on-failure
networks:
default:
aliases:
- cameldemo