-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
136 lines (126 loc) · 3.85 KB
/
docker-compose.yaml
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
version: '3.2'
services:
reverse-proxy:
image: traefik # The official Traefik docker image
command: --api.insecure=true --providers.docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80:80" # The HTTP port
- "8082:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.0
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms4g -Xmx4g
- network.host=0.0.0.0
- xpack.security.enabled=false
volumes:
- data_elasticsearh:/usr/share/elasticsearch/data
labels:
- "traefik.frontend.rule=Host:elasticsearch.docker.localhost"
kibana:
image: docker.elastic.co/kibana/kibana:8.15.0
ports:
- 5601:5601
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
labels:
- "traefik.frontend.rule=Host:kibana.docker.localhost"
mongo:
image: mongo:latest
ports:
- 27017:27017
volumes:
- data_mongo:/data/db
labels:
- "traefik.frontend.rule=Host:mongo.docker.localhost"
- "app=mediawatch"
mongo-express:
image: mongo-express
ports:
- 8081:8081
links:
- mongo:mongo
depends_on:
- mongo
labels:
- "traefik.frontend.rule=Host:express.docker.localhost"
neo4j:
image: neo4j:5.5.0
ports:
- 7474:7474
- 7473:7473
- 7687:7687
environment:
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4J_AUTH=none
- NEO4J_dbms_allow__upgrade=true
# - NEO4J_dbms_cluster_discovery_log__level=DEBUG
# - NEO4J_db_transaction_tracing_level=DEBUG
# - NEO4J_dbms_routing_driver_logging_level=DEBUG
- NEO4J_server_memory_heap_max__size=2G
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
- NEO4J_initial_dbms_default__database=mediawatch
# - NEO4J_apoc_import_file_enabled=true
# - NEO4J_apoc_import_file_use_neo4j_config=true
# - NEO4J_apoc_export_file_enabled=true
# - NEO4J_dbms_shell_enabled=true
# - NEO4J_kafka_zookeeper_connect=zookeeper:2181
# - NEO4J_kafka_bootstrap_servers=kafka:9092
# - NEO4J_kafka_max_poll_records=16384
# - NEO4J_streams_source_enabled=false
# - NEO4J_streams_procedures_enabled=true
# - NEO4J_streams_sink_enabled=true
# - NEO4J_streams_sink_topic_pattern_node_compare="SinkArticle{!docId}"
# - NEO4J_PLUGINS='["graph-data-science"]'
volumes:
- data_neo4j_data:/data
- $PWD/tmp:/export
# - data_neo4j_logs:/logs
# - $PWD/plugins:/var/lib/neo4j/plugins
labels:
- "traefik.frontend.rule=Host:neo4j.docker.localhost"
redis:
image: redis:7
ports:
- 6379:6379
kafka: # bitnami
image: bitnami/kafka:3.6.1
ports:
- 9092:9092
- 9093:9093
environment:
KAFKA_CFG_NODE_ID: 0
KAFKA_CFG_PROCESS_ROLES: controller,broker
KAFKA_CFG_LISTENERS: PLAINTEXT://kafka:9092,CONTROLLER://kafka:9093
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka:9093
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "true"
extra_hosts:
- "moby:127.0.0.1"
- "localhost:127.0.0.1"
volumes:
- data_kafka:/bitnami/kafka
labels:
- "traefik.frontend.rule=Host:kafka.docker.localhost"
kafka-ui:
image: provectuslabs/kafka-ui:v0.7.1
ports:
- 8070:8080
depends_on:
- kafka
environment:
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
volumes:
data_neo4j_data:
data_mongo:
data_elasticsearh:
data_dgraph:
data_kafka:
data_zookeper: