Skip to content

Commit

Permalink
Cron
Browse files Browse the repository at this point in the history
  • Loading branch information
thueske committed Apr 28, 2024
1 parent 09fe5b9 commit 4d6f3d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions conf/php/custom.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
log_errors = Off
cgi.fix_pathinfo = 0
memory_limit = 256M
log_errors = On
cgi.fix_pathinfo = 0
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d6f3d1

Please sign in to comment.