-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
96 lines (89 loc) · 2.8 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: "3"
services:
zookeeper:
image: wurstmeister/zookeeper
expose:
- "2181"
kafka:
image: wurstmeister/kafka:2.13-2.7.0
ports:
- "9092:9092"
expose:
- "9093"
environment:
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://1.2.3.4:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_OPTS: "-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf"
KAFKA_SASL_ENABLED_MECHANISMS: PLAIN
KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN
depends_on:
- zookeeper
volumes:
- ./:/etc/kafka
mongodb:
image: mongo:4.0.22
container_name: "mongodb"
ports:
- 27018:27017
dent-crawler:
image: gurkanakdeniz/dent-crawler:latest
ports:
- 8082:8082
environment:
- spring_data_mongodb_host=mongodb
- spring_kafka_bootstrap_servers=$${kafka_bootstrap_servers:kafka:9093}
- spring_kafka_properties_sasl_jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username=$${kafka_username:"admin"} password=$${kafka_password:"admin-secret"};
- spring_kafka_properties_sasl_mechanism=PLAIN
- spring_kafka_properties_security_protocol=PLAINTEXT
- spring_kafka_jaas_enabled=true
- spring_kafka_jaas_listener_ack_mode=manual_immediate
- webdriver_args=--headless;--no-sandbox
depends_on:
- mongodb
- kafka
links:
- mongodb
- kafka
dent-iext:
image: gurkanakdeniz/dent-iext:latest
ports:
- 8083:8083
environment:
- spring_data_mongodb_host=mongodb
- spring_kafka_bootstrap_servers=$${kafka_bootstrap_servers:kafka:9093}
- spring_kafka_properties_sasl_jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username=$${kafka_username:"admin"} password=$${kafka_password:"admin-secret"};
- spring_kafka_properties_sasl_mechanism=PLAIN
- spring_kafka_properties_security_protocol=PLAINTEXT
- spring_kafka_jaas_enabled=true
- spring_kafka_jaas_listener_ack_mode=manual_immediate
depends_on:
- mongodb
- kafka
links:
- mongodb
- kafka
dent-bff:
image: gurkanakdeniz/dent-bff:latest
ports:
- 8081:8081
environment:
- feign_url_crawler=http://dent-crawler:8082
- feign_url_iext=http://dent-iext:8083
- spring_data_mongodb_host=mongodb
depends_on:
- dent-crawler
- dent-iext
links:
- mongodb
dent-ui:
image: gurkanakdeniz/dent-ui:latest
ports:
- 8080:8080
environment:
- VUE_APP_API=http://dent-bff:8081
depends_on:
- dent-bff