adds resticprofile backup service to compose.yml
This commit is contained in:
16
resticprofile/Dockerfile
Normal file
16
resticprofile/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM docker.io/creativeprojects/resticprofile:latest
|
||||
ENV TZ=UTC
|
||||
|
||||
RUN set -eux && \
|
||||
apk update && \
|
||||
apk add sqlite && \
|
||||
mkdir -p /app/var/backups
|
||||
|
||||
WORKDIR /etc/resticprofile
|
||||
|
||||
COPY . .
|
||||
RUN chmod +x db_dump.sh entrypoint.sh && \
|
||||
resticprofile schedule --all
|
||||
|
||||
ENTRYPOINT ["/etc/resticprofile/entrypoint.sh"]
|
||||
CMD ["crond", "-f", "-l", "2"]
|
||||
Reference in New Issue
Block a user