NOTE:
The container will not create the Elastalert writeback_index or check its existence. Please refer to Elastalert docs for setting up Ealsticsearch.
Based on the work of Ivan Krizsan who gave us ivankrizsan/elastalert.
You can build your image with all configs and rules baked in. This is only recommended if you host the image in a private registry (ex. GitLab).
FROM iben12/elastalert-base
COPY config/elastalert.yaml /opt/elastalert/config.yaml
COPY config/elastalert-test.yaml /opt/elastalert/config-test.yaml
COPY rules /opt/elastalert/rules
docker build -t yourrepo/elastalert .
In this case you just need to run Elastalert as simply as
docker run -d yourrepo/elastalert
Another way is to mount your configs and rules like this
docker run -d \
-v $(pwd)/config/elastalert.yaml:/opt/elastalert/config.yaml \
-v $(pwd)/config/elastalert-test.yaml:/opt/elastalert/config-test.yaml \
-v $(pwd)/rules:/opt/elastalert/rules \
iben12/elastalert-base
Content type
Image
Digest
Size
81.2 MB
Last updated
over 6 years ago
docker pull iben12/elastalert-base