-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpipeline.yml
110 lines (103 loc) · 3.01 KB
/
pipeline.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
version: "3.8"
services:
zookeeper:
image: docker.io/bitnami/zookeeper:3.7
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
volumes:
- ./volume/zookeper-data:/bitnami
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: docker.io/bitnami/kafka:3
container_name: kafka
hostname: kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
- "9093:9093"
volumes:
- ./volume/kafka-data:/bitnami
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
mongodb:
image: docker.io/bitnami/mongodb:4.4.11
container_name: mongodb
hostname: mongodb
environment:
MONGODB_ROOT_PASSWORD: openfda
MONGODB_ADVERTISED_HOSTNAME: mongodb
MONGODB_USERNAME: openfda
MONGODB_PASSWORD: openfda
MONGODB_DATABASE: openfda
volumes:
- ./volume/mongo-data:/bitnami
ports:
- "27017:27017"
openfda-producer:
image: koziolk/openfda-producer:latest
container_name: openfda-producer
hostname: openfda-producer
depends_on:
- kafka
- mongodb
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
KAFKA_WAIT_FOR_SERVERS: 60000
KAFKA_NUMBER_OF_TOPIC_PARTITIONS: 8
OPENFDA_API_BATCH_SIZE: 1000
OPENFDA_API_BATCH_READ_DELAY: 1000
OPENFDA_API_SYNC_DATE_FROM: "2021-01-01"
OPENFDA_API_SYNC_DATE_TO: "2022-01-01"
JAVA_TOOL_OPTIONS: -Xmx1G -Xms1G
ports:
- "7777:8080"
openfda-consumer:
image: koziolk/openfda-consumer:latest
container_name: openfda-consumer
hostname: openfda-consumer
depends_on:
- kafka
- mongodb
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SPRING_DATA_MONGODB_URI: mongodb://root:openfda@mongodb:27017/openfda?authSource=admin
KAFKA_WAIT_FOR_SERVERS: 60000
KAFKA_NUMBER_OF_CONSUMERS: 8
JAVA_TOOL_OPTIONS: -Xmx1G -Xms1G
ports:
- "9999:8080"
openfda-dashboard:
image: koziolk/openfda-live-dashboard:latest
container_name: openfda-dashboard
hostname: openfda-dashboard
depends_on:
- openfda-producer
- openfda-consumer
environment:
MONGO_URI: mongodb://root:openfda@mongodb:27017/openfda?authSource=admin
MONGO_DB: openfda
GRAPH_REFRESH_INTERVAL: 10000
ports:
- "8050:8050"
jupyter-notebook:
image: jupyter/base-notebook:latest
container_name: jupyter-notebook
hostname: jupyter-notebook
depends_on:
- openfda-producer
- openfda-consumer
environment:
JUPYTER_ENABLE_LAB: "yes"
command: "start-notebook.sh --NotebookApp.token='openfda' --NotebookApp.password='openfda'"
ports:
- "8888:8888"