diff --git a/rspamd/Dockerfile b/rspamd/Dockerfile index 068404d7..fcbb5ed9 100644 --- a/rspamd/Dockerfile +++ b/rspamd/Dockerfile @@ -2,9 +2,12 @@ FROM alpine:edge RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ && apk add --update \ - rspamd@testing rsyslog \ + rspamd@testing \ && rm -rf /var/cache/apk/* - + RUN mkdir /run/rspamd -CMD ["rspamd", "-f", "-i"] \ No newline at end of file +COPY conf/ /etc/rspamd +COPY start.sh /start.sh + +CMD ["/start.sh"] diff --git a/rspamd/conf/worker.d/controller.conf b/rspamd/conf/worker.d/controller.conf new file mode 100644 index 00000000..5434527c --- /dev/null +++ b/rspamd/conf/worker.d/controller.conf @@ -0,0 +1,11 @@ +worker { + bind_socket = "0.0.0.0:11334"; + type = "controller"; + count = 1; + password = "q1"; + secure_ip = "127.0.0.1"; + secure_ip = "::1"; + static_dir = "${WWWDIR}"; + .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/worker-controller.inc" + .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-controller.inc" +}