forked from dwt/dmarc-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (36 loc) · 1.57 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.7'
services:
parsedmarc:
build: ./parsedmarc/
volumes:
- ./parsedmarc/parsedmarc.ini:/parsedmarc.ini:ro
- ./parsedmarc/GeoLite2-Country.mmdb:/usr/share/GeoIP/GeoLite2-Country.mmdb:ro
- ./parsedmarc/output_files:/output
command: wait-for elasticsearch:9200 -t 60 -- venv/bin/parsedmarc -c /parsedmarc.ini
depends_on:
- elasticsearch
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
elasticsearch:
# There seems to be no :latest image - so a version has to be specified explicitly
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.1
# Open distribution doesn't seem to work? Not sure why
# image: amazon/opendistro-for-elasticsearch
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms300m -Xmx300m"
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
# @see https://grafana.com/docs/grafana/latest/installation/docker/
# @see https://grafana.com/docs/grafana/latest/installation/configure-docker/
grafana:
image: grafana/grafana:latest
volumes:
- ./grafana/data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/:ro
# using standard file mapping instead of secret here, because podman-compose doesn't know about secrets
- ./secrets/grafana_admin_password.txt:/var/run/grafana_admin_password:ro
ports:
- 3000:3000
environment:
GF_INSTALL_PLUGINS: grafana-piechart-panel,grafana-worldmap-panel
GF_SECURITY_ADMIN_PASSWORD__FILE: /var/run/grafana_admin_password