22 lines
682 B
YAML
22 lines
682 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
heartbeat:
|
|
image: ${HEARTBEAT_IMAGE}
|
|
command:
|
|
# Log to stderr.
|
|
- -e
|
|
# Disable config file permissions checks. Allows mounting
|
|
# 'config/heartbeat.yml' even if it's not owned by root.
|
|
# see: https://www.elastic.co/guide/en/beats/libbeat/current/config-file-permissions.html
|
|
- --strict.perms=false
|
|
volumes:
|
|
- ./elk/extensions/heartbeat/config/heartbeat.yml:/usr/share/heartbeat/heartbeat.yml:ro,Z
|
|
environment:
|
|
HEARTBEAT_INTERNAL_PASSWORD: ${HEARTBEAT_INTERNAL_PASSWORD:-}
|
|
BEATS_SYSTEM_PASSWORD: ${BEATS_SYSTEM_PASSWORD:-}
|
|
networks:
|
|
- elk
|
|
depends_on:
|
|
- elasticsearch
|