1
0

compose.scheduler.yml 386 B

12345678910111213141516
  1. services:
  2. scheduler:
  3. image: alpine:3
  4. command: >
  5. sh -c "
  6. apk add --no-cache curl tini &&
  7. exec tini -- crond -f -L /dev/stdout
  8. "
  9. volumes:
  10. - ./docker/scheduler.crontab:/etc/crontabs/root:ro
  11. environment:
  12. INTERNAL_JOB_TOKEN: ${INTERNAL_JOB_TOKEN}
  13. depends_on:
  14. api:
  15. condition: service_healthy
  16. restart: unless-stopped