Remove anonymous volumes

This commit is contained in:
Santiago Lo Coco 2023-11-01 09:36:57 -03:00
parent 29ac5a6a68
commit 48f379a0e5
9 changed files with 13 additions and 33 deletions

View File

@ -7,10 +7,6 @@ services:
- setup
image: ${ELK_SETUP_IMAGE}
init: true
volumes:
- ./elk/setup/entrypoint.sh:/entrypoint.sh:ro,Z
- ./elk/setup/lib.sh:/lib.sh:ro,Z
- ./elk/setup/roles:/roles:ro,Z
environment:
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-}
LOGSTASH_INTERNAL_PASSWORD: ${LOGSTASH_INTERNAL_PASSWORD:-}
@ -28,7 +24,6 @@ services:
elasticsearch:
image: ${ELASTICSEARCH_IMAGE}
volumes:
- ./elk/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro,Z
- elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
@ -36,12 +31,7 @@ services:
environment:
node.name: elasticsearch
ES_JAVA_OPTS: -Xms512m -Xmx512m
# Bootstrap password.
# Used to initialize the keystore during the initial startup of
# Elasticsearch. Ignored on subsequent runs.
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-}
# Use single node discovery in order to disable production mode and avoid bootstrap checks.
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node
networks:
- elk
@ -50,9 +40,6 @@ services:
logstash:
container_name: fids_logstash
image: ${LOGSTASH_IMAGE}
volumes:
- ./elk/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro,Z
- ./elk/logstash/pipeline:/usr/share/logstash/pipeline:ro,Z
ports:
- 5044:5044
- 50000:50000/tcp
@ -71,8 +58,6 @@ services:
kibana:
image: ${KIBANA_IMAGE}
volumes:
- ./elk/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro,Z
ports:
- 5601:5601
environment:

View File

@ -1,7 +1,5 @@
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
# Add your elasticsearch plugins setup here
# Example: RUN elasticsearch-plugin install analysis-icu
COPY config/elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml

View File

@ -5,5 +5,8 @@ USER root
RUN >>/var/spool/cron/crontabs/nobody \
echo '* * * * * /curator/curator /.curator/delete_log_files_curator.yml'
COPY config/curator.yml /.curator/curator.yml
COPY config/delete_log_files_curator.yml /.curator/delete_log_files_curator.yml
ENTRYPOINT ["crond"]
CMD ["-f", "-d8"]

View File

@ -4,9 +4,6 @@ services:
curator:
image: ${CURATOR_IMAGE}
init: true
volumes:
- ./elk/extensions/curator/config/curator.yml:/.curator/curator.yml:ro,Z
- ./elk/extensions/curator/config/delete_log_files_curator.yml:/.curator/delete_log_files_curator.yml:ro,Z
environment:
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-}
networks:

View File

@ -1,3 +1,5 @@
ARG ELASTIC_VERSION
FROM docker.elastic.co/beats/heartbeat:${ELASTIC_VERSION}
COPY config/heartbeat.yml /usr/share/heartbeat/heartbeat.yml

View File

@ -4,14 +4,8 @@ services:
heartbeat:
image: ${HEARTBEAT_IMAGE}
command:
# Log to stderr.
- -e
# Disable config file permissions checks. Allows mounting
# 'config/heartbeat.yml' even if it's not owned by root.
# see: https://www.elastic.co/guide/en/beats/libbeat/current/config-file-permissions.html
- --strict.perms=false
volumes:
- ./elk/extensions/heartbeat/config/heartbeat.yml:/usr/share/heartbeat/heartbeat.yml:ro,Z
environment:
HEARTBEAT_INTERNAL_PASSWORD: ${HEARTBEAT_INTERNAL_PASSWORD:-}
BEATS_SYSTEM_PASSWORD: ${BEATS_SYSTEM_PASSWORD:-}

View File

@ -1,7 +1,5 @@
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/kibana/kibana:${ELASTIC_VERSION}
# Add your kibana plugins setup here
# Example: RUN kibana-plugin install <name|url>
COPY config/kibana.yml /usr/share/kibana/config/kibana.yml

View File

@ -3,5 +3,5 @@ ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/logstash/logstash:${ELASTIC_VERSION}
# Add your logstash plugins setup here
# Example: RUN logstash-plugin install logstash-filter-json
COPY config/logstash.yml /usr/share/logstash/config/logstash.yml
COPY pipeline /usr/share/logstash/pipeline

View File

@ -1,6 +1,9 @@
ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
COPY entrypoint.sh /entrypoint.sh
COPY lib.sh /lib.sh
COPY roles /roles
ENTRYPOINT ["/entrypoint.sh"]