-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose-with-opensearch.yaml
More file actions
90 lines (85 loc) · 2.38 KB
/
docker-compose-with-opensearch.yaml
File metadata and controls
90 lines (85 loc) · 2.38 KB
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
version: "3.4"
services:
opensearch:
image: "opensearchproject/opensearch:3.5.0"
container_name: opensearch
environment:
- "DISABLE_SECURITY_PLUGIN=true"
- discovery.type=single-node
- http.port=9200
- "http.cors.allow-origin=*"
- http.cors.enabled=true
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- http.cors.allow-credentials=true
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- "9200:9200"
- "9600:9600"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "./data:/usr/share/opensearch/data"
networks:
- reactivesearch_network
reactivesearch-api:
container_name: rs-api
image: appbaseio/reactivesearch-api:9.2.0
restart: always
environment:
- PIPELINE_LOG_FILE_PATH=/reactivesearch-data/pipeline.json
- USERNAME=rs-admin-user
- PASSWORD=rs-password
- ES_CLUSTER_URL=http://opensearch:9200
command: --env="/reactivesearch-data/.env" --log=info
volumes:
- "reactivesearch-data:/reactivesearch-data"
ports:
- 8000:8000
networks:
- reactivesearch_network
nginx:
container_name: nginx
image: nginx:1.29-alpine # or: nginx:stable-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:4.0.8
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:ro"
- "./parser.conf:/fluent-bit/etc/parsers.conf:ro"
- "reactivesearch-data:/reactivesearch-data"
- "fluent-bit-state:/fluent-bit/state"
networks:
- reactivesearch_network
volumes:
reactivesearch-data:
external: false
name: reactivesearch-data
www:
external: false
name: www
fluent-bit-state:
external: false
name: fluent-bit-state
networks:
reactivesearch_network:
driver: bridge