2021-05-09 22:07:17 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
elasticsearch:
|
2022-10-23 22:38:06 +02:00
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.4.3
|
2021-05-09 22:07:17 +02:00
|
|
|
hostname: ${CN}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- node.name=es01
|
|
|
|
- discovery.type=single-node
|
|
|
|
# - bootstrap.memory_lock=true
|
2021-06-10 14:51:27 +02:00
|
|
|
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
|
2021-05-09 22:07:17 +02:00
|
|
|
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:
|
2022-10-23 22:38:06 +02:00
|
|
|
image: docker.elastic.co/kibana/kibana:8.4.3
|
2021-05-09 22:07:17 +02:00
|
|
|
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"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.kb.entrypoints=websecure"
|
2023-02-01 18:43:13 +01:00
|
|
|
- "traefik.http.routers.kb.rule=Host(`${CN}`)"
|
2021-05-09 22:07:17 +02:00
|
|
|
- "co.elastic.logs/module=kibana"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|