version: '3.7' services: heartbeat: build: context: extensions/heartbeat/ args: ELASTIC_VERSION: ${ELASTIC_VERSION} 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: - ./extensions/heartbeat/config/heartbeat.yml:/usr/share/heartbeat/heartbeat.yml:ro,Z environment: ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-} BEATS_SYSTEM_PASSWORD: ${BEATS_SYSTEM_PASSWORD:-} networks: - elk depends_on: - elasticsearch