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

Improve docker-compose.yml #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,29 @@ services:
- ./output_files:/output
command: parsedmarc -c /parsedmarc.ini /input/*
depends_on:
- elasticsearch
restart: on-failure
elasticsearch:
condition: service_healthy
restart: always

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.1
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.9

environment:
- cluster.name=parsedmarc
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false # required to prevent warnings in kibana dashboard. Security is not required as we're only operating docker-internally
ulimits:
memlock:
soft: -1
hard: -1
restart: always
healthcheck:
test: [ "CMD", "curl","-s" ,"-f", "http://localhost:9200/_cat/health" ]
interval: 1m
timeout: 10s
retries: 3
start_period: 30s

grafana:
build: ./grafana/
Expand Down