-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
31 lines (31 loc) · 1.06 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
version: '2'
services:
zookeeper:
image: zookeeper:3.5
ports:
- "2181:2181"
kafka:
image: uni-search-engine/kafka:0.0.1-SNAPSHOT
ports: ["9092:9092"]
depends_on: [zookeeper]
environment:
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "web_events:1:1,search_events:1:1,select_search_result_events:1:1"
volumes: [ "/var/run/docker.sock:/var/run/docker.sock" ]
searchEngineStreamProcessor:
image: uni-search-engine/kafka:0.0.1-SNAPSHOT
network_mode: "host"
depends_on: [kafka]
command: [ "/bin/bash", "-c", "sleep 15s && java -jar /opt/kafka/my_jars/search-engine-kafka-stream-processors.jar" ]
nginx:
image: nginx:latest
volumes: [ "./nginx.conf:/etc/nginx/conf.d/default.conf" ]
network_mode: "host"
searchEngineFrontend:
image: uni-search-engine/frontend:0.0.1-SNAPSHOT
network_mode: "host"
searchEngineBackend:
image: uni-search-engine/backend:0.0.1-SNAPSHOT
network_mode: "host"
depends_on: [searchEngineStreamProcessor]