--- version: "3.8" services: cron: image: "crazymax/swarm-cronjob:1.12.0" environment: - TZ=Europe/Amsterdam - LOG_LEVEL=info - LOG_JSON=false volumes: - "/var/run/docker.sock:/var/run/docker.sock" app: image: "renovate/renovate:37.109-slim" environment: LOG_LEVEL: info GITHUB_COM_TOKEN_FILE: /run/secrets/github_token configs: - source: config_js target: /usr/src/app/config.js - source: entrypoint target: /docker-entrypoint.sh mode: 0555 entrypoint: /docker-entrypoint.sh command: renovate secrets: - api_token - github_token healthcheck: disable: true volumes: - "/var/run/docker.sock:/var/run/docker.sock" deploy: mode: replicated replicas: 0 labels: - "swarm.cronjob.enable=true" - "swarm.cronjob.schedule=0 9 * * 1-5" # office hours # - "swarm.cronjob.schedule=* * * * *" # every minute, testing restart_policy: condition: none configs: config_js: name: comrade_renovate_bot_config_js_v1 file: config.js.tmpl template_driver: golang entrypoint: name: comrade_renovate_bot_entrypoint_v1 file: entrypoint.sh secrets: api_token: name: comrade_renovate_bot_api_token_v1 external: true github_token: name: comrade_renovate_bot_github_token_v1 external: true