Docker: add ofelia scheduler for nextcloud

This commit is contained in:
Marko Korhonen 2022-11-18 21:47:09 +02:00
parent fdd1df7d24
commit c48528802a
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 15 additions and 0 deletions

View file

@ -44,6 +44,12 @@ environment = [
"OVERWRITEPROTOCOL=https",
]
depends_on = ["redis"]
labels = [
"ofelia.enabled=true",
"ofelia.job-exec.nextcloud.schedule=0 */5 * * * *",
"ofelia.job-exec.nextcloud.command=php /var/www/html/cron.php",
"ofelia.job-exec.nextcloud.user=www-data",
]
[services.redis]
image = "redis:alpine"

View file

@ -0,0 +1,9 @@
[services.ofelia]
image = "mcuadros/ofelia"
container_name = "ofelia"
volumes = [
"/etc/localtime:/etc/localtime:ro",
"/var/run/docker.sock:/var/run/docker.sock:ro"
]
network_mode = "none"
command = "daemon --docker"