[Rspamd] Set Redis slaveof if not master, adjust redis configs automatically

This commit is contained in:
andryyy
2020-02-05 10:58:52 +01:00
parent 15fb2e22ea
commit b889c70db8
2 changed files with 28 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y \
&& apt-key adv --fetch-keys https://rspamd.com/apt-stable/gpg.key \
&& echo "deb [arch=amd64] https://rspamd.com/apt-stable/ $CODENAME main" > /etc/apt/sources.list.d/rspamd.list \
&& apt-get update \
&& apt-get --no-install-recommends -y install rspamd \
&& apt-get --no-install-recommends -y install rspamd redis-tools \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get autoremove --purge \
&& apt-get clean \