-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
82 lines (76 loc) · 1.78 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
---
version: '2.1'
services:
# Elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELK_TAG}
restart: always
container_name: elasticsearch
environment:
- cluster.name=${CLUSTER_NAME}
- node.name=${NODE_NAME}
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms${HEAP_SIZE} -Xmx${HEAP_SIZE}"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: ${ELASTIC_MEM_LIMIT}
cap_add:
- IPC_LOCK
volumes:
- esdata:${ELASTIC_DATA}
ports:
- "${ELK_BIND_IP}:9200:9200"
healthcheck:
test: curl -fs http://localhost:9200/
networks:
- ${NET_NAME}
# Kibana
kibana:
image: docker.elastic.co/kibana/kibana-oss:${ELK_TAG}
restart: always
container_name: kibana
mem_limit: ${KIBANA_MEM_LIMIT}
environment:
- "NODE_OPTIONS=--max-old-space-size=${KIBANA_HEAP_SIZE}"
ports:
- "${ELK_BIND_IP}:5601:5601"
healthcheck:
test: curl -fs http://localhost:5601/
networks:
- ${NET_NAME}
depends_on:
elasticsearch:
condition: service_healthy
# SpamScope
spamscope:
image: ${SPAMSCOPE_IMAGE_NAME}
restart: always
container_name: spamscope
mem_limit: ${SPAMSCOPE_MEM_LIMIT}
dns:
- 8.8.8.8
- 8.8.4.4
ports:
- "${SPAMSCOPE_BIND_IP}:8080:8080"
volumes:
- ${HOST_SPAMSCOPE_CONF}:/etc/spamscope
- ${HOST_MAILS_FOLDER}:${DOCKER_MAILS_FOLDER}
- spamscope_logs:/logs
healthcheck:
test: curl -fs http://localhost:8080/
networks:
- ${NET_NAME}
depends_on:
elasticsearch:
condition: service_healthy
volumes:
esdata:
driver: local
networks:
esnet:
driver: bridge