2023-08-24 14:50:53 +00:00
|
|
|
ARG ALPINE_VERSION=3.18.3
|
|
|
|
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
|
2022-11-23 16:16:55 +00:00
|
|
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
2024-06-21 15:21:51 +00:00
|
|
|
LABEL org.opencontainers.image.authors="f@sutty.nl"
|
2022-11-23 16:16:55 +00:00
|
|
|
ENV MAX_MEMORY=100mb
|
2019-09-10 23:23:34 +00:00
|
|
|
|
2022-03-15 23:08:47 +00:00
|
|
|
RUN echo "bind 127.0.0.1 ::1" >> /etc/redis.conf
|
2022-03-08 11:40:41 +00:00
|
|
|
RUN sed -re "/^save \"\"/d" \
|
|
|
|
-e "s/^(appendonly) .*/\1 yes/" \
|
|
|
|
-e "s/^(maxmemory-policy) .*/\1 volatile-ttl/" \
|
|
|
|
-e "s|^(dir) .*|\1 /var/lib/redis|" \
|
|
|
|
-i /etc/redis.conf
|
2019-09-10 23:23:34 +00:00
|
|
|
|
2020-11-17 17:58:36 +00:00
|
|
|
RUN apk add --no-cache rspamd rspamd-client rspamd-proxy rspamd-controller
|
|
|
|
RUN install -dm 755 /etc/rspamd/local.d
|
|
|
|
RUN install -dm 750 -o rspamd -g rspamd /var/lib/rspamd
|
2022-03-08 11:40:41 +00:00
|
|
|
RUN install -dm 750 -o redis -g redis /var/lib/redis
|
2020-11-17 17:58:36 +00:00
|
|
|
|
2023-01-07 18:43:37 +00:00
|
|
|
COPY ./dkim_signing.conf /etc/rspamd/local.d/dkim_signing.conf
|
|
|
|
COPY ./redis.conf /etc/rspamd/local.d/redis.conf
|
|
|
|
COPY ./worker-proxy.inc /etc/rspamd/local.d/worker-proxy.inc
|
|
|
|
COPY ./worker-normal.inc /etc/rspamd/local.d/worker-normal.inc
|
|
|
|
COPY ./worker-controller.inc /etc/rspamd/local.d/worker-controller.inc
|
|
|
|
COPY ./options.inc /etc/rspamd/local.d/options.inc
|
|
|
|
COPY ./logging.inc /etc/rspamd/local.d/logging.inc
|
|
|
|
COPY ./classifier-bayes.conf /etc/rspamd/local.d/classifier-bayes.conf
|
|
|
|
COPY ./local_addrs /etc/rspamd/local.d/maps.d/local_addrs
|
|
|
|
COPY ./monit.conf /etc/monit.d/rspamd.conf
|
2020-11-17 17:58:36 +00:00
|
|
|
|
|
|
|
EXPOSE 11332
|
|
|
|
EXPOSE 11333
|
|
|
|
EXPOSE 11334
|
2022-03-08 11:40:41 +00:00
|
|
|
VOLUME "/var/lib/redis"
|
2020-11-17 17:58:36 +00:00
|
|
|
VOLUME "/var/lib/rspamd"
|