old_console/docker/compose/el.yml
2024-11-02 14:12:45 +03:00

57 lines
2 KiB
YAML

version: '3.2'
services:
elasticsearch:
env_file:
- ../../.env.dev
container_name: ${DOCKER_ELASTIC_NAME:-elastic}
build:
context: ./config/elk/elasticsearch/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- type: bind
source: ./config/elk/elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
#- type: volume
#source: elasticsearch
#target: /usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx512m -Xms512m"
#ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTIC_PASSWORD: changeme
# Use single node discovery in order to disable production mode and avoid bootstrap checks
# see https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node
vector:
env_file:
- ../../.env.dev
container_name: ${DOCKER_VECTOR_NAME:-vector}
build:
context: ./config/elk/vector/
command: "--watch-config /usr/share/vector/pipeline/ --config-dir /usr/share/vector/pipeline/"
volumes:
- type: bind
source: ./config/elk/vector/config/vector.yml
target: /usr/share/vector/config/vector.yml
read_only: true
- type: bind
source: ./config/elk/vector/pipeline
target: /usr/share/vector/pipeline
read_only: true
- ../../dockerlogs/:/var/log
ports:
- "5100:5000/tcp"
- "5100:5000/udp"
- "9600:9600"
- "5500:5500/udp"
- "5600:5600/udp"
environment:
LS_JAVA_OPTS: "-Xmx4096m -Xms4096m"
#LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
- elasticsearch