Moved GRAYLOG_PLUGIN_DIR env var to Dockerfile

Added log limits to the docker-compose services - 500Mb each
This commit is contained in:
MatthewJSalerno
2019-11-23 09:05:18 -05:00
parent 4b69fe18db
commit d2ab5fb4e7
3 changed files with 17 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
FROM graylog/graylog:3.1
# Probably a bad idea, but it works for now
USER root
ENV GRAYLOG_PLUGIN_DIR=/etc/graylog/server/
RUN mkdir -pv /etc/graylog/server/
COPY ./getGeo.sh /etc/graylog/server/
RUN chmod +x /etc/graylog/server/getGeo.sh && /etc/graylog/server/getGeo.sh

View File

@@ -1,3 +1,2 @@
GRAYLOG_PLUGIN_DIR=/etc/graylog/server/
curl --output ${GRAYLOG_PLUGIN_DIR}/mm.tar.gz https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
tar zxvf ${GRAYLOG_PLUGIN_DIR}/mm.tar.gz -C ${GRAYLOG_PLUGIN_DIR} --strip-components=1