-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
75 lines (70 loc) · 1.82 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
version: '3.4'
services:
parsedmarc:
container_name: "parsedmarc"
build:
context: .
dockerfile: parsedmarc/Dockerfile
command: "parsedmarc -c /etc/parsedmarc.ini"
tty: true
volumes:
- ./parsedmarc/parsedmarc.ini:/etc/parsedmarc.ini:z
#- /path/to/GeoIP:/usr/share/GeoIP
restart: unless-stopped
networks:
- parsedmarc-network
depends_on:
- elasticsearch
elasticsearch:
container_name: "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"
networks:
- parsedmarc-network
healthcheck:
test: ["CMD", "curl","-s" ,"-f", "http://localhost:9200/_cat/health"]
interval: 1m
timeout: 10s
retries: 3
start_period: 30s
kibana:
container_name: "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
networks:
- parsedmarc-network
depends_on:
- elasticsearch
nginx:
container_name: "nginx"
image: nginx:alpine
restart: unless-stopped
tty: true
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/:z
- ./nginx/ssl/:/etc/nginx/ssl/:z
- ./nginx/htpasswd:/etc/nginx/htpasswd:z
networks:
- parsedmarc-network
networks:
parsedmarc-network:
driver: bridge