Upload of Dockerfile und overrides

This commit is contained in:
Patrick Niebeling
2019-12-19 08:47:17 +01:00
parent c3f90f770a
commit 8031e6c919
6 changed files with 42 additions and 0 deletions

28
Dockerfile Normal file
View File

@ -0,0 +1,28 @@
# This Dockerfile is losely based on the rspamd's own Dockerfile
FROM debian:buster
LABEL maintainer="Phillip Schichtel <phillip@schich.tel>"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install --no-install-recommends -y gnupg \
&& apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 3FA347D5E599BE4595CA2576FFA232EDBF21E25E \
&& echo "deb http://rspamd.com/apt-stable/ buster main" > /etc/apt/sources.list.d/rspamd.list \
&& apt-get purge -y gnupg \
&& apt-get autoremove --purge -y \
&& apt-get update
RUN apt-get --no-install-recommends install -y rspamd
COPY --chown=_rspamd:_rspamd overrides/* /etc/rspamd/override.d/
VOLUME ["/var/lib/rspamd", "/etc/rspamd/local.d"]
HEALTHCHECK --interval=1m --timeout=5s --start-period=10s CMD /usr/bin/rspamadm control stat || exit 1
EXPOSE 11332 11333 11334
ENTRYPOINT ["rspamd", "-f", "-u", "_rspamd", "-g", "_rspamd"]

2
overrides/logging.inc Normal file
View File

@ -0,0 +1,2 @@
type = "console";

2
overrides/options.inc Normal file
View File

@ -0,0 +1,2 @@
pidfile = false;

View File

@ -0,0 +1,6 @@
bind_socket = "*:11334";
{% if env.PASSWORD_HASH %}
password = "{= env.PASSWORD_HASH =}";
{% endif %}

View File

@ -0,0 +1,2 @@
bind_socket = "*:11333";

View File

@ -0,0 +1,2 @@
bind_socket = "*:11332";