2019-09-10 23:10:18 +00:00
|
|
|
FROM sutty/monit:latest
|
|
|
|
MAINTAINER "f <f@sutty.nl>"
|
2019-09-11 00:15:08 +00:00
|
|
|
|
|
|
|
ENV BORG_HOST_ID borg
|
|
|
|
ENV BORG_PASSPHRASE ""
|
|
|
|
ENV KEEP 30
|
2020-09-03 15:43:52 +00:00
|
|
|
ENV SSH_ALIAS ""
|
|
|
|
ENV SSH_SERVER ""
|
|
|
|
ENV SSH_USER root
|
|
|
|
ENV SSH_PORT 22
|
|
|
|
|
|
|
|
RUN apk add --no-cache borgbackup
|
2019-09-11 00:15:08 +00:00
|
|
|
|
|
|
|
COPY ./monit.conf /etc/monit.d/borg.conf
|
|
|
|
COPY ./backup.sh /usr/local/bin/backup
|
2020-09-03 15:43:52 +00:00
|
|
|
COPY ./ssh_config /root/.ssh/config
|
2019-09-18 19:32:45 +00:00
|
|
|
RUN chmod 755 /usr/local/bin/backup
|
2020-09-03 15:43:52 +00:00
|
|
|
RUN chmod -R u=rX,g=,o= /root/.ssh
|
2019-09-11 00:15:08 +00:00
|
|
|
|
|
|
|
VOLUME /srv/data
|
|
|
|
VOLUME /srv/backups
|