|
|
|
@ -1,8 +1,8 @@ |
|
|
|
|
version: '3' |
|
|
|
|
services: |
|
|
|
|
es01-test: |
|
|
|
|
elasticsearch: |
|
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.14 |
|
|
|
|
container_name: es01-test |
|
|
|
|
container_name: elasticsearch |
|
|
|
|
networks: |
|
|
|
|
- elastic |
|
|
|
|
ports: |
|
|
|
@ -19,7 +19,7 @@ services: |
|
|
|
|
ports: |
|
|
|
|
- "0.0.0.0:5601:5601" |
|
|
|
|
environment: |
|
|
|
|
- ELASTICSEARCH_HOSTS=http://es01-test:9200 |
|
|
|
|
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200 |
|
|
|
|
|
|
|
|
|
logstash: |
|
|
|
|
image: docker.elastic.co/logstash/logstash:8.11.1 |
|
|
|
@ -27,8 +27,8 @@ services: |
|
|
|
|
networks: |
|
|
|
|
- elastic |
|
|
|
|
volumes: |
|
|
|
|
- ./scripts/elk/logstash.conf:/usr/share/logstash/config/logstash.conf |
|
|
|
|
- ./tmp_log:/tmp_log |
|
|
|
|
- ./logstash.conf:/usr/share/logstash/config/logstash.conf |
|
|
|
|
- ../../tmp_log:/tmp_log |
|
|
|
|
command: logstash -f /usr/share/logstash/config/logstash.conf |
|
|
|
|
|
|
|
|
|
networks: |
|
|
|
|