aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--elk/docker-compose.yaml123
1 files changed, 36 insertions, 87 deletions
diff --git a/elk/docker-compose.yaml b/elk/docker-compose.yaml
index cf913ba..aeb2694 100644
--- a/elk/docker-compose.yaml
+++ b/elk/docker-compose.yaml
@@ -1,68 +1,28 @@
-version: "3.4"
+version: "3.8"
services:
- # notification:
- # image: notification
- # build:
- # context: ./
- # networks:
- # - notifnet
- # restart: on-failure
- # ports:
- # - "8383:8383"
- # depends_on:
- # - elasticsearch
- # - mongopercona
- # volumes:
- # - log-data:/logs/
- # secrets:
- # - sms_api_key
- # - sms_secret_key
- # - firebase_api_key
- # - firebase_admin_sdk_pk
- # - firebase_google_services
- # environment:
- # - FIREBASE_CONFIG="/run/secrets/firebase_google_services.json"
- # - GOOGLE_APPLICATION_CREDENTIALS="/run/secrets/firebase_admin_sdk_pk"
- mongopercona:
- image: percona/percona-server-mongodb:4.0
- networks:
- - notifnet
- restart: on-failure
- volumes:
- - queue-data:/data/db
- - ./percona/mongod.conf:/etc/mongod.conf:ro
- ports:
- - "27017:27017"
- - "27018:27018"
- - "27019:27019"
- mongo:
- image: mongo
- networks:
- - notifnet
- restart: on-failure
- ports:
- - "27117:27017"
- - "27118:27018"
- - "27119:27019"
- volumes:
- - user-data:/data/db
elasticsearch:
- image: elasticsearch:7.10.1
+ image: elasticsearch:8.10.1
volumes:
- elk-data:/usr/share/elasticsearch/data
+ deploy:
+ resources:
+ limits:
+ memory: 3072M
networks:
- - notifnet
- lognet
ports:
- - "9200:9200"
- - "9300:9300"
+ - "127.0.0.1:9200:9200"
+ - "127.0.0.1:9300:9300"
environment:
- ES_JAVA_OPTS=-Xms256m -Xmx256m
- discovery.type=single-node
- - xpack.monitoring.enabled=true
- - xpack.watcher.enabled=true
+ - xpack.security.enabled=false
logstash:
- image: logstash:7.10.1
+ image: logstash:8.10.1
+ deploy:
+ resources:
+ limits:
+ memory: 1024M
networks:
- lognet
depends_on:
@@ -71,51 +31,40 @@ services:
- MONITORING_ENABLED=true
- LS_JAVA_OPTS=-Xms256m -Xmx256m
ports:
- - "5000:5000"
+ - "127.0.0.1:5103:5000"
kibana:
- image: kibana:7.10.1
+ image: kibana:8.10.1
+ deploy:
+ resources:
+ limits:
+ memory: 1024M
environment:
- ELASTICSEARCH_URL=http://elastic:9200
networks:
- lognet
ports:
- - "5102:5601"
+ - "127.0.0.1:5102:5601"
depends_on:
- elasticsearch
- filebeat:
- image: docker.elastic.co/beats/filebeat:7.10.1
- networks:
- - lognet
- depends_on:
- - elasticsearch
- environment:
- - setup.kibana.host=kibana:5601
- - output.elasticsearch.hosts=["elasticsearch:9200"]
volumes:
- - log-data:/logs/
- - ./filebeat/config/filebeat.yml:/usr/share/filebeat/filebeat.yml
+ - kibana-data:/usr/share/elasticsearch/data
+ # filebeat:
+ # image: docker.elastic.co/beats/filebeat:7.10.1
+ # networks:
+ # - lognet
+ # depends_on:
+ # - elasticsearch
+ # environment:
+ # - setup.kibana.host=kibana:5601
+ # - output.elasticsearch.hosts=["elasticsearch:9200"]
+ # volumes:
+ # - log-data:/logs/
+ # - ./filebeat/config/filebeat.yml:/usr/share/filebeat/filebeat.yml
volumes:
- queue-data:
elk-data:
log-data:
- user-data:
+ kibana-data:
networks:
lognet:
- # driver: bridge
- driver: overlay
- attachable: true
- notifnet:
- # driver: bridge
- driver: overlay
+ driver: bridge
attachable: true
-secrets:
- sms_api_key:
- file: ./sms_api_key.txt
- sms_secret_key:
- file: ./sms_secret_key.txt
- firebase_api_key:
- file: ./firebase_api_key.txt
- firebase_admin_sdk_pk:
- file: ./es-provider-firebase-adminsdk-36qrt-609d77a41b.json
- firebase_google_services:
- file: ./google-services.json