[Rspamd] Wait for PHP to not break inotify
This commit is contained in:
parent
c0f39e5cac
commit
02bb3a44a7
@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
gnupg2 \
|
gnupg2 \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
dnsutils \
|
dnsutils \
|
||||||
|
netcat \
|
||||||
&& apt-key adv --fetch-keys https://rspamd.com/apt-stable/gpg.key \
|
&& 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 \
|
&& echo "deb [arch=amd64] https://rspamd.com/apt-stable/ $CODENAME main" > /etc/apt/sources.list.d/rspamd.list \
|
||||||
&& echo "deb-src [arch=amd64] https://rspamd.com/apt-stable/ $CODENAME main" >> /etc/apt/sources.list.d/rspamd.list \
|
&& echo "deb-src [arch=amd64] https://rspamd.com/apt-stable/ $CODENAME main" >> /etc/apt/sources.list.d/rspamd.list \
|
||||||
|
@ -1,5 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Waiting for PHP to settle..."
|
||||||
|
sleep 10
|
||||||
|
|
||||||
|
until nc phpfpm 9001 -z; do
|
||||||
|
echo "Waiting for PHP on port 9001..."
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
|
||||||
|
until nc phpfpm 9002 -z; do
|
||||||
|
echo "Waiting for PHP on port 9002..."
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
|
||||||
mkdir -p /etc/rspamd/plugins.d \
|
mkdir -p /etc/rspamd/plugins.d \
|
||||||
/etc/rspamd/custom
|
/etc/rspamd/custom
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ services:
|
|||||||
- clamd
|
- clamd
|
||||||
|
|
||||||
rspamd-mailcow:
|
rspamd-mailcow:
|
||||||
image: mailcow/rspamd:1.50
|
image: mailcow/rspamd:1.51
|
||||||
build: ./data/Dockerfiles/rspamd
|
build: ./data/Dockerfiles/rspamd
|
||||||
stop_grace_period: 30s
|
stop_grace_period: 30s
|
||||||
depends_on:
|
depends_on:
|
||||||
|
Loading…
Reference in New Issue
Block a user