47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
elasticsearch:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.4.3
|
|
hostname: ${CN}
|
|
restart: unless-stopped
|
|
environment:
|
|
- node.name=es01
|
|
- discovery.type=single-node
|
|
# - bootstrap.memory_lock=true
|
|
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
volumes:
|
|
- ${DATA_PATH}/es/es01/data:/usr/share/elasticsearch/data
|
|
- ${DATA_PATH}/es/es01/snapshots:/usr/share/elasticsearch/snapshots
|
|
- ${DATA_PATH}/es/es01/config:/usr/share/elasticsearch/config
|
|
ports:
|
|
- 9200:9200
|
|
labels:
|
|
- "co.elastic.logs/module=elasticsearch"
|
|
|
|
kibana:
|
|
image: docker.elastic.co/kibana/kibana:8.4.3
|
|
restart: unless-stopped
|
|
networks:
|
|
- proxy
|
|
- default
|
|
links:
|
|
- "elasticsearch:${CN}"
|
|
expose:
|
|
- 5601
|
|
volumes:
|
|
- ${DATA_PATH}/kb/config:/usr/share/kibana/config
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=proxy"
|
|
- "traefik.http.routers.kb.rule=Host(`${CN}`)"
|
|
- "co.elastic.logs/module=kibana"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|