Ajout d'ofelia pour gestion des tâches planifiées
This commit is contained in:
parent
1cf0d4e11f
commit
e372435cc6
4 changed files with 30 additions and 5 deletions
|
@ -16,4 +16,5 @@
|
|||
with_items:
|
||||
- docker-compose.yml
|
||||
- config.local.php
|
||||
- ofelia.ini
|
||||
notify: docker-compose-up
|
||||
|
|
|
@ -28,3 +28,7 @@ const FILE_STORAGE_QUOTA = {{ docker_paheko_quota_gb }}*1024*1024*1024;
|
|||
|
||||
// Command line to use chromium to generate PDF documents
|
||||
const PDF_COMMAND = 'chromium --no-sandbox --headless --disable-dev-shm-usage --autoplay-policy=no-user-gesture-required --no-first-run --disable-gpu --disable-features=DefaultPassthroughCommandDecoder --use-fake-ui-for-media-stream --use-fake-device-for-media-stream --disable-sync --print-to-pdf=%2$s %1$s';
|
||||
|
||||
const USE_CRON = true;
|
||||
const WWW_URI = "/";
|
||||
const WWW_URL = "https://{{ docker_paheko_fqdn }}/";
|
||||
|
|
|
@ -11,13 +11,24 @@ services:
|
|||
- {{ docker_paheko_data_dir }}/{{ docker_paheko_service_id }}/data:/var/www/paheko/data
|
||||
- /var/www/paheko/data/plugins
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=traefik"
|
||||
- "traefik.http.routers.{{ docker_paheko_service_id }}.entrypoints=web"
|
||||
- "traefik.http.routers.{{ docker_paheko_service_id }}.rule=Host(`{{ docker_paheko_fqdn }}`)"
|
||||
- "traefik.http.services.{{ docker_paheko_service_id }}.loadbalancer.server.port=80"
|
||||
traefik.enable: "true"
|
||||
traefik.docker.network: "traefik"
|
||||
traefik.http.routers.{{ docker_paheko_service_id }}.entrypoints: "web"
|
||||
traefik.http.routers.{{ docker_paheko_service_id }}.rule: "Host(`{{ docker_paheko_fqdn }}`)"
|
||||
traefik.http.services.{{ docker_paheko_service_id }}.loadbalancer.server.port: "80"
|
||||
networks:
|
||||
- traefik
|
||||
userns_mode: host
|
||||
|
||||
ofelia:
|
||||
image: mcuadros/ofelia:latest
|
||||
command: daemon --config /etc/ofelia/config.ini
|
||||
volumes:
|
||||
- ./ofelia.ini:/etc/ofelia/config.ini
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
userns_mode: host
|
||||
depends_on:
|
||||
- paheko
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
|
|
9
templates/ofelia.ini
Normal file
9
templates/ofelia.ini
Normal file
|
@ -0,0 +1,9 @@
|
|||
[job-exec "emails"]
|
||||
schedule = @every 60s
|
||||
container = {{ docker_paheko_service_id }}-paheko-1
|
||||
command = php /var/www/paheko/scripts/emails.php
|
||||
|
||||
[job-exec "reminders"]
|
||||
schedule = @daily
|
||||
container = {{ docker_paheko_service_id }}-paheko-1
|
||||
command = php /var/www/paheko/scripts/cron.php
|
Loading…
Reference in a new issue