test
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
FROM alpine:3.19
|
FROM alpine:3.19
|
||||||
|
|
||||||
RUN apk add --no-cache postgresql-client curl zip tzdata dcron
|
RUN apk add --no-cache postgresql-client curl zip tzdata
|
||||||
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
||||||
RUN mkdir -p /var/log/cron /backups
|
RUN mkdir -p /var/log/cron /backups
|
||||||
|
|
||||||
@@ -12,4 +12,4 @@ RUN chmod +x backup.sh && \
|
|||||||
chmod 0644 /etc/crontabs/root && \
|
chmod 0644 /etc/crontabs/root && \
|
||||||
touch /var/log/cron/cron.log
|
touch /var/log/cron/cron.log
|
||||||
|
|
||||||
CMD ["crond", "-f", "-L", "/var/log/cron/cron.log"]
|
CMD ["busybox", "crond", "-f", "-L", "/var/log/cron/cron.log"]
|
||||||
@@ -59,8 +59,6 @@ services:
|
|||||||
- backups:/backups
|
- backups:/backups
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
cap_add:
|
|
||||||
- SYS_ADMIN
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user