Commit eab56e91 authored by Dave Lane's avatar Dave Lane
Browse files

tidying up new version of system, including network aliases

parent cd817174
FROM debian:jessie
FROM oeru/php7.0-fpm-jessie
MAINTAINER Dave Lane <dave@oerfoundation.org> (@lightweight)
# Install PHP extensions
RUN apt-get update && apt-get install -y net-tools vim dnsutils
# install cron and msmtp for outgoing email
RUN apt-get install -y cron
RUN apt-get install -y curl
RUN rm -rf /var/lib/apt/lists/*
RUN touch 0644 /var/log/cron.log
VOLUME /etc/cron.d
# set up cron tasks
RUN echo '# cron jobs for Multisite Wordpress - dave@oerfoundation.org' > /etc/cron.d/wpms-cron
RUN echo '# see https://mautic.org/docs/en/setup/cron_jobs.html for details' >> /etc/cron.d/wpms-cron
RUN echo 'PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin' >> /etc/cron.d/wpms-cron
RUN echo 'OUT=/var/log/cron.log' >> /etc/cron.d/wpms-cron
RUN echo '# Run cron every 5 minutes' >> /etc/cron.d/wpms-cron
RUN echo '*/5 * * * * www-data php /var/www/html/wp-cron.php >> $OUT' >> /etc/cron.d/wpms-cron
RUN echo '# Just testing' >> /etc/cron.d/wpms-cron
RUN echo '*/5 * * * * www-data echo "Running cron at $(date)" >> $OUT ' >> /etc/cron.d/wpms-cron
RUN echo '# empty line' >> /etc/cron.d/wpms-cron
RUN touch 0644 /var/log/cron.log
CMD cron && tail -f /var/log/cron.log
This container is called
`oeru:cron-jessie`
`oeru/php7.0-fpm-jessie-cron`
We build it with
`docker build -t oeru:cron-jessie .`
`docker build -t oeru/php7.0-fpm-jessie-cron .`
you can replace the `oeru:` with your preferred name.
you can replace the `oeru/` with your preferred name.
dave@oerfoundation.org
# Caching configuration
# https://easyengine.io/wordpress-nginx/tutorials/multisite/subdirectories/fastcgi-cache-with-purging/
#
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:500m inactive=60m;
fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=WORDPRESS:500m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header http_500;
......
This container is called
`wpms-php7.0-fpm-jessie`
`oeru/php7.0-fpm-jessie`
We build it with
`docker build -t oeru:wpms-php7.0-fpm-jessie .`
`docker build -t oeru/php7.0-fpm-jessie .`
you can replace the `oeru:` with your preferred name.
you can replace the `oeru/` with your preferred name.
dave@oerfoundation.org
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment