-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
112 lines (105 loc) · 3.05 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '2.4'
services:
parsedmarc-init:
image: patschi/parsedmarc:init
restart: always
volumes:
- ./data/conf/parsedmarc/:/etc/parsedmarc/:rw
- ./data/conf/nginx/ssl/:/etc/nginx/ssl/:rw
- ./data/data/elasticsearch:/usr/share/elasticsearch/data/:rw
networks:
- parsedmarc-network
healthcheck:
test: [ "CMD", "test", "-f", "/ready" ]
interval: 10s
timeout: 5s
retries: 9999
start_period: 10s
parsedmarc:
image: patschi/parsedmarc:latest
volumes:
- ./data/conf/parsedmarc/:/etc/parsedmarc/
- ./data/data/geoipupdate/:/usr/share/GeoIP:z,ro
restart: always
networks:
- parsedmarc-network
depends_on:
elasticsearch:
condition: service_healthy
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.18
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
volumes:
- ./data/data/elasticsearch:/usr/share/elasticsearch/data/
restart: always
networks:
- parsedmarc-network
expose: # only expose docker-internally
- 9200
healthcheck:
test: [ "CMD", "curl","-s" ,"-f", "http://localhost:9200/_cat/health" ]
interval: 1m
timeout: 10s
retries: 3
start_period: 30s
depends_on:
parsedmarc-init:
condition: service_started
kibana:
image: docker.elastic.co/kibana/kibana:7.17.18
environment:
- elasticsearch.hosts=http://elasticsearch:9200
- telemetry.enabled=false
- telemetry.optIn=false
- security.showInsecureClusterWarning=false
expose: # only expose docker-internally
- 5601
restart: always
networks:
- parsedmarc-network
depends_on:
elasticsearch:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl","-s" ,"-f", "http://localhost:5601/" ]
interval: 1m
timeout: 10s
retries: 3
start_period: 30s
geoipupdate:
image: maxmindinc/geoipupdate
env_file:
- geoipupdate.env
environment:
- "GEOIPUPDATE_EDITION_IDS=GeoLite2-Country"
- GEOIPUPDATE_PRESERVE_FILE_TIMES=1
restart: always
volumes:
- ./data/data/geoipupdate/:/usr/share/GeoIP:z,rw
nginx:
image: nginx:alpine
restart: always
ports:
- "${PORT_BINDING:-9999:443}"
volumes:
- ./data/conf/nginx/site.conf:/etc/nginx/conf.d/default.conf:ro
- ./data/conf/nginx/ssl/:/etc/nginx/ssl/:ro
networks:
- parsedmarc-network
depends_on:
kibana:
condition: service_healthy
parsedmarc-init:
condition: service_healthy
networks:
parsedmarc-network:
driver: bridge