forked from dragoangel/parsedmarc-dockerized
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.53 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
version: '3.4'
services:
parsedmarc:
build:
context: ./parsedmarc/
dockerfile: ./Dockerfile
environment:
# in general: <section>.<option>
parsedmarc.general.save_aggregate: "True"
parsedmarc.general.save_forensic: "True"
# parsedmarc.mailbox.watch: "True"
# parsedmarc.imap.host: "imap.example.com"
# parsedmarc.imap.user: "[email protected]"
# parsedmarc.imap.password: "somepassword"
parsedmarc.elasticsearch.hosts: "http://elasticsearch:9200"
parsedmarc.elasticsearch.ssl: "False"
restart: unless-stopped
depends_on:
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0
environment:
- cluster.name=parsedmarc
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data/:z
restart: "unless-stopped"
healthcheck:
test: ["CMD", "curl","-s" ,"-f", "http://localhost:9200/_cat/health"]
interval: 1m
timeout: 10s
retries: 3
start_period: 30s
kibana:
image: docker.elastic.co/kibana/kibana:7.17.0
environment:
SERVER_NAME: parsedmarc
SERVER_HOST: "0.0.0.0"
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
XPACK_MONITORING_UI_CONTAINER_ELASTICSEARCH_ENABLED: "true"
restart: unless-stopped
depends_on:
- elasticsearch
volumes:
elasticsearch_data: