Add network elknet and prepare for new fresh install
This commit is contained in:
+4
-33
@@ -5,9 +5,11 @@ services:
|
|||||||
container_name: elasticsearch.node01
|
container_name: elasticsearch.node01
|
||||||
restart: always
|
restart: always
|
||||||
hostname: elasticsearch.node01.maison
|
hostname: elasticsearch.node01.maison
|
||||||
|
networks:
|
||||||
|
- elknet
|
||||||
volumes:
|
volumes:
|
||||||
- '/var/lib/docker/volumes/elasticsearch/ES_data/:/usr/share/elasticsearch/data'
|
- '/var/lib/docker/volumes/elasticsearch/data/:/usr/share/elasticsearch/data'
|
||||||
- '/var/lib/docker/volumes/elasticsearch/ES_config/:/usr/share/elasticsearch/config'
|
# - '/var/lib/docker/volumes/elasticsearch/config/:/usr/share/elasticsearch/config'
|
||||||
ports:
|
ports:
|
||||||
- '9300:9300'
|
- '9300:9300'
|
||||||
- '9200:9200'
|
- '9200:9200'
|
||||||
@@ -19,34 +21,3 @@ services:
|
|||||||
- bootstrap.memory_lock=true
|
- bootstrap.memory_lock=true
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
|
|
||||||
kibana:
|
|
||||||
image: 'docker.elastic.co/kibana/kibana:8.17.0'
|
|
||||||
container_name: kibana
|
|
||||||
restart: always
|
|
||||||
hostname: kibana.maison
|
|
||||||
volumes:
|
|
||||||
- '/var/lib/docker/volumes/elasticsearch/K_data/:/usr/share/kibana/data'
|
|
||||||
- '/var/lib/docker/volumes/elasticsearch/K_config/:/usr/share/kibana/config'
|
|
||||||
ports:
|
|
||||||
- '5601:5601'
|
|
||||||
tty: true
|
|
||||||
stdin_open: true
|
|
||||||
depends_on:
|
|
||||||
- elasticsearch
|
|
||||||
|
|
||||||
elasticagent:
|
|
||||||
image: 'docker.elastic.co/elastic-agent/elastic-agent:8.17.0'
|
|
||||||
container_name: elastic-agent-ubuntu-host
|
|
||||||
restart: always
|
|
||||||
hostname: elastic-agent-ubuntu-host.maison
|
|
||||||
ports:
|
|
||||||
- '8220:8220'
|
|
||||||
environment:
|
|
||||||
- FLEET_SERVER_ENABLE=1
|
|
||||||
- FLEET_SERVER_ELASTICSEARCH_HOST=https://elasticsearch.node01:9200
|
|
||||||
- FLEET_SERVER_SERVICE_TOKEN=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE3NzA1NjU2MzI5NjM6NGsyUm9NSDNRNk80eW9sdTI3MWdSUQ
|
|
||||||
- FLEET_SERVER_POLICY_ID=fleet-server-policy
|
|
||||||
- FLEET_SERVER_ELASTICSEARCH_CA_TRUSTED_FINGERPRINT=ffb30d55e002c339b70ed66f82e6645fc44a515add3abf2932b13057ea09262e
|
|
||||||
volumes:
|
|
||||||
- '/Var/run/docker.sock:/var/run/docker.sock'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user