Fábio Kaiser Rauber
2 years ago
3 changed files with 17 additions and 16 deletions
@ -1,12 +1,13 @@ |
|||
FROM rawmind/alpine-monit:5.25-3 |
|||
FROM alpine:3.16 |
|||
|
|||
RUN apk add --no-cache rspamd rspamd-controller rspamd-proxy rspamd-fuzzy ca-certificates curl |
|||
|
|||
RUN mkdir /run/rspamd |
|||
|
|||
COPY monit-service.conf /opt/monit/etc/conf.d |
|||
COPY start.sh / |
|||
|
|||
EXPOSE 11332/tcp 11334/tcp 11335/tcp |
|||
|
|||
VOLUME ["/var/lib/rspamd"] |
|||
|
|||
CMD ["/start.sh"] |
|||
|
@ -1,11 +1,15 @@ |
|||
version: '2' |
|||
services: |
|||
antispam: |
|||
build: . |
|||
environment: |
|||
PASSWORD: 'apassword' |
|||
volume_driver: local |
|||
volumes: |
|||
- "filter:/var/lib/rspamd" |
|||
ports: |
|||
- 11334:11334 |
|||
- 11333:11333 |
|||
|
|||
volumes: |
|||
filter: |
|||
driver: local |
|||
|
@ -1,4 +0,0 @@ |
|||
check process rspamd with pidfile /run/rspamd/rspamd.pid |
|||
start program = "/start.sh" |
|||
stop program = "/bin/bash -c '/bin/kill `/bin/cat /run/rspamd/rspamd.pid`'" |
|||
if failed port 11334 type tcp for 10 cycles then exec "/opt/monit/bin/monit quit" |
Loading…
Reference in new issue