Move sleep to docker-compose
parent
67bb037b36
commit
be8031d8ff
|
@ -21,8 +21,7 @@ ADD antivirus.conf /etc/rspamd/modules.d/antivirus.conf
|
||||||
|
|
||||||
RUN pip install -U oletools
|
RUN pip install -U oletools
|
||||||
|
|
||||||
# Give Nginx/PHP time to restart
|
CMD /usr/bin/rspamd -f -u _rspamd -g _rspamd
|
||||||
CMD /bin/sleep 30; /usr/bin/rspamd -f -u _rspamd -g _rspamd
|
|
||||||
|
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ services:
|
||||||
rspamd-mailcow:
|
rspamd-mailcow:
|
||||||
image: andryyy/mailcow-dockerized:rspamd
|
image: andryyy/mailcow-dockerized:rspamd
|
||||||
build: ./data/Dockerfiles/rspamd
|
build: ./data/Dockerfiles/rspamd
|
||||||
|
command: "sleep 25; /usr/bin/rspamd -f -u _rspamd -g _rspamd"
|
||||||
depends_on:
|
depends_on:
|
||||||
nginx-mailcow:
|
nginx-mailcow:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
Loading…
Reference in New Issue