forked from debricked/dmarc-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (87 loc) · 2.44 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3.5'
volumes:
elasticsearch_data:
driver: local
grafana_data:
driver: local
networks:
dmarc_visualizer:
name: dmarc_visualizer
driver: bridge
ipam:
config:
- subnet: 10.0.2.0/29
services:
parsedmarc:
build: ./parsedmarc/
volumes:
- ./files:/input:ro
- ./output_files:/output
command: sh -c "crond && parsedmarc --verbose -c /parsedmarc.ini /input/*"
restart: always
networks:
dmarc_visualizer:
ipv4_address: 10.0.2.4
depends_on:
elasticsearch:
condition: service_healthy
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data:rw
ports:
- 9200:9200
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
networks:
dmarc_visualizer:
ipv4_address: 10.0.2.2
environment:
- cluster.name=dmarc_visualizer
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms2048m -Xms2048m"
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- xpack.security.enrollment.enabled=false
grafana:
build: ./grafana/
volumes:
- grafana_data:/var/lib/grafana
ports:
- 3000:3000
networks:
dmarc_visualizer:
ipv4_address: 10.0.2.3
# user: grafana
environment:
GF_LOG_LEVEL: debug
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /var/lib/grafana/dashboards/Grafana-DMARC_Reports.json
GF_EXPLORE_ENABLED: false
GF_ALERTING_ENABLED: false
GF_UNIFIED_ALERTING_ENABLED: false
GF_AUTH_ANONYMOUS_ENABLED: false
GF_AUTH_OAUTH_AUTO_LOGIN: false
GF_AUTH_BASIC: true
# GF_AUTH_AZUREAD_ENABLED: true
# GF_AUTH_AZUREAD_ALLOW_SIGN_UP: true
# GF_AUTH_AZUREAD_CLIENT_ID=CLIENT_ID_FROM_AZURE_PORTAL
# GF_AUTH_AZUREAD_CLIENT_SECRET=CLIENT_SECRET_FROM_AZURE_PORTAL
# GF_AUTH_AZUREAD_SCOPES=openid email profile
# GF_AUTH_AZUREAD_AUTH_URL=AUTH_URL
# GF_AUTH_AZUREAD_TOKEN_URL=TOKEN_URL
# GF_AUTH_AZUREAD_ROLE_ATTRIBUTE_STRICT: false
# GF_AUTH_AZUREAD_ALLOW_ASSIGN_GRAFANA_ADMIN: false
# GF_SERVER_ROOT_URL=URL
restart: always
depends_on:
elasticsearch:
condition: service_healthy