File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ That will be moved to `${MAILBOXES_WHEN_DONE_MOVE_TO}` or `${MAILBOXES_WHEN_FAIL
3434
3535## Usage
3636
37+ ## Fetching reports
38+
39+ A cron is located in ` /var/spool/cron/crontabs/application ` and will fetch reports hourly.
40+ Feel free to mount another [ crontab file] ( ./docker/crontab ) to ` /var/spool/cron/crontabs/application `
41+ See: [ cron setup from the upstream image] ( https://github.com/webdevops/Dockerfile/issues/280 )
42+
43+ ## Docker compose
44+
3745``` yml
3846version : " 2.3"
3947
Original file line number Diff line number Diff line change @@ -12,11 +12,14 @@ ENV WEB_DOCUMENT_INDEX="index.html"
1212ENV php.variables_order="EGPCS"
1313
1414# Remove global logging
15- RUN sed -i '/access_log/d' /etc/nginx/nginx.conf
15+ RUN set -eux; \
16+ sed -i '/access_log/d' /etc/nginx/nginx.conf;
1617
1718COPY nginx-host.conf /opt/docker/etc/nginx/vhost.common.d/20-nginx-host.conf
1819COPY nginx-logs.conf /opt/docker/etc/nginx/conf.d/5-logs.conf
1920COPY nginx-vhost.conf /opt/docker/etc/nginx/vhost.conf
21+ # root:application
22+ COPY --chown=root:1000 --chmod=0600 crontab /var/spool/cron/crontabs/application
2023
2124USER application
2225WORKDIR $WEB_DOCUMENT_ROOT
@@ -28,7 +31,7 @@ RUN set -eux; \
2831 cd $WEB_DOCUMENT_ROOT; \
2932 # curl -# -L -o - https://patch-diff.githubusercontent.com/raw/liuch/dmarc-srg/pull/<pr-id>.diff | patch -p1; \
3033 rm -vr *.md; \
31- tree
34+ tree;
3235
3336COPY config.php /var/www/html/config/conf.php
3437
Original file line number Diff line number Diff line change 1+ @hourly php -f /var/www/html/utils/fetch_reports.php
You can’t perform that action at this time.
0 commit comments