-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-with-elasticsearch.yaml
105 lines (99 loc) · 2.69 KB
/
docker-compose-with-elasticsearch.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
version: "3.4"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.1
container_name: elasticsearch
restart: always
environment:
- node.name=elasticsearch
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.port=9200
- http.cors.enabled=true
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- http.cors.allow-credentials=true
- network.publish_host=_local_
- network.host=_local_,_site_
- transport.host=127.0.0.1
- http.host=0.0.0.0
- xpack.security.enabled=false
user: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
networks:
- reactivesearch_network
zinc:
image: public.ecr.aws/zinclabs/zinc:latest
container_name: zinc
restart: always
user: root
environment:
- ZINC_FIRST_ADMIN_USER=admin
- ZINC_FIRST_ADMIN_PASSWORD=Complexpass#123
- ZINC_DATA_PATH="/data"
ports:
- "4080:4080"
volumes:
- "zinc-data:/data"
networks:
- reactivesearch_network
reactivesearch-api:
container_name: rs-api
image: appbaseio/reactivesearch-api:8.22.5
restart: always
environment:
- PIPELINE_LOG_FILE_PATH=/reactivesearch-data/pipeline.json
- USERNAME=foo
- PASSWORD=bar
- APPBASE_ID=${ENTER_YOUR_APPBASE_ID}
- ES_CLUSTER_URL=http://elasticsearch:9200
command: --log=info
volumes:
- "reactivesearch-data:/reactivesearch-data"
ports:
- 8000:8000
networks:
- reactivesearch_network
nginx:
container_name: nginx
image: nginx:1.17-alpine
restart: always
volumes:
- ./nginx/default.conf:/etc/nginx/nginx.conf
- ./reactivesearch-logo.svg:/etc/nginx/html/reactivesearch-logo.svg
- ./nginx/certs:/etc/ssl/certs/
- ./nginx/error.html:/etc/nginx/html/50x.html
- "www:/var/www/html"
ports:
- 80:80
- 443:443
networks:
- reactivesearch_network
fluentbit:
image: fluent/fluent-bit:1.9.10
user: root
container_name: fluentbit
command: /fluent-bit/bin/fluent-bit -c /fluent-bit/etc/fluent-bit.conf
depends_on:
- "reactivesearch-api"
restart: always
volumes:
- "./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf"
- "./parser.conf:/fluent-bit/etc/parser.conf"
- "reactivesearch-data:/reactivesearch-data"
networks:
- reactivesearch_network
volumes:
reactivesearch-data:
external: false
name: reactivesearch-data
www:
external: false
name: www
zinc-data:
external: false
name: zinc-data
networks:
reactivesearch_network:
driver: bridge