Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start elasticsearch #53

Open
AlessioRosi opened this issue Jan 24, 2024 · 1 comment
Open

Unable to start elasticsearch #53

AlessioRosi opened this issue Jan 24, 2024 · 1 comment

Comments

@AlessioRosi
Copy link

elasticsearch stop working after less tha 20 seconds, so grafana can not load data

that's my doker compose

version: '3.5'
services:
parsedmarc:
build: ./parsedmarc/
volumes:
- ./files:/input:ro
- ./output_files:/output
command: parsedmarc -c /parsedmarc.ini /input/* --debug
depends_on:
- elasticsearch
restart: on-failure

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
environment:
- discovery.type=single-node
volumes:
- ./elastic_data:/usr/share/elasticsearch/data

grafana:
build: ./grafana/
ports:
- 3000:3000
user: root
environment:
GF_INSTALL_PLUGINS: grafana-piechart-panel,grafana-worldmap-panel
GF_AUTH_ANONYMOUS_ENABLED: 'true'

and that's my parsedmarc.ini
[general]
save_aggregate = True
save_forensic = True
output = /output/

[elasticsearch]
hosts = elasticsearch:9200
ssl = False

@sgocken
Copy link

sgocken commented Feb 14, 2024

The elastic_data dir needs to be owned by uid 1000 as that is the userid that is run as in the container.

chown -R 1000:root elastic_data/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants