Skip to content

Commit

Permalink
Code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
fedelemantuano committed Feb 10, 2018
1 parent 9bb0343 commit 35d8376
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 239 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ELK_TAG=5.6.3
HEAP_SIZE=1024m
HOST_MAILS_FOLDER=/path/in/host
HOST_SPAMSCOPE_CONF=/path/conf/in/host
KIBANA_HEAP_SIZE=1000
KIBANA_MEM_LIMIT=2g
NET_NAME=esnet
NODE_NAME=spamscope
Expand Down
30 changes: 17 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
version: '2.1'

services:

# Elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${ELK_TAG}
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELK_TAG}
restart: always
container_name: elasticsearch
environment:
- cluster.name=${CLUSTER_NAME}
Expand All @@ -23,34 +25,35 @@ services:
- IPC_LOCK
volumes:
- esdata:${ELASTIC_DATA}
- ./elasticsearch/config:/usr/share/elasticsearch/config
ports:
- "${ELK_BIND_IP}:9200:9200"
healthcheck:
test: curl -fs http://localhost:9200/
test: curl -fs http://localhost:9200/
networks:
- ${NET_NAME}

# Kibana
kibana:
image: docker.elastic.co/kibana/kibana:${ELK_TAG}
image: docker.elastic.co/kibana/kibana-oss:${ELK_TAG}
restart: always
container_name: kibana
mem_limit: ${KIBANA_MEM_LIMIT}
volumes:
- ./kibana/config:/opt/kibana/config
environment:
- "NODE_OPTIONS=--max-old-space-size=${KIBANA_HEAP_SIZE}"
ports:
- "${ELK_BIND_IP}:5601:5601"
healthcheck:
test: curl -fs http://localhost:5601/
test: curl -fs http://localhost:5601/
networks:
- ${NET_NAME}
depends_on:
elasticsearch:
condition: service_healthy
elasticsearch:
condition: service_healthy

# SpamScope
spamscope:
image: ${SPAMSCOPE_IMAGE_NAME}
restart: always
container_name: spamscope
mem_limit: ${SPAMSCOPE_MEM_LIMIT}
dns:
Expand All @@ -61,13 +64,14 @@ services:
volumes:
- ${HOST_SPAMSCOPE_CONF}:/etc/spamscope
- ${HOST_MAILS_FOLDER}:${DOCKER_MAILS_FOLDER}
- spamscope_logs:/logs
healthcheck:
test: curl -fs http://localhost:8080/
test: curl -fs http://localhost:8080/
networks:
- ${NET_NAME}
depends_on:
elasticsearch:
condition: service_healthy
elasticsearch:
condition: service_healthy

volumes:
esdata:
Expand Down
8 changes: 0 additions & 8 deletions elasticsearch/config/elasticsearch.yml

This file was deleted.

1 change: 0 additions & 1 deletion elasticsearch/config/ingest-geoip/.gitignore

This file was deleted.

114 changes: 0 additions & 114 deletions elasticsearch/config/jvm.options

This file was deleted.

9 changes: 0 additions & 9 deletions elasticsearch/config/log4j2.properties

This file was deleted.

Empty file.
15 changes: 0 additions & 15 deletions elasticsearch/config/x-pack/log4j2.properties

This file was deleted.

14 changes: 0 additions & 14 deletions elasticsearch/config/x-pack/role_mapping.yml

This file was deleted.

3 changes: 0 additions & 3 deletions elasticsearch/config/x-pack/roles.yml

This file was deleted.

Empty file removed elasticsearch/config/x-pack/users
Empty file.
Empty file.
24 changes: 0 additions & 24 deletions kibana/config/kibana.example.org.crt

This file was deleted.

28 changes: 0 additions & 28 deletions kibana/config/kibana.example.org.key

This file was deleted.

10 changes: 0 additions & 10 deletions kibana/config/kibana.yml

This file was deleted.

0 comments on commit 35d8376

Please sign in to comment.