diff --git a/conf/php/custom.ini b/conf/php/custom.ini index 357ab44..0048590 100644 --- a/conf/php/custom.ini +++ b/conf/php/custom.ini @@ -1,3 +1,2 @@ -log_errors = Off -cgi.fix_pathinfo = 0 -memory_limit = 256M \ No newline at end of file +log_errors = On +cgi.fix_pathinfo = 0 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 055b23e..f0ea4ad 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,11 @@ services: - WORDPRESS_DB_USER=${DB_USER:-wordpress} - WORDPRESS_DB_PASSWORD=${DB_PASSWORD:-wordpress} - WORDPRESS_DB_NAME=${DB_NAME:-wordpress} + labels: + - ofelia.restart=true + - ofelia.enabled=true + - "ofelia.job-exec.${COMPOSE_PROJECT_NAME}cron.schedule=* */5 * * * *" + - "ofelia.job-exec.${COMPOSE_PROJECT_NAME}cron.command=sh -c 'su-exec www-data php wp-cron.php'" volumes: - $PWD/data/web:/var/www/html - $PWD/conf/php/custom.ini:/usr/local/etc/php/conf.d/90-custom.ini