2021-11-13 19:51:55 +00:00
|
|
|
---
|
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
2021-11-13 20:30:42 +00:00
|
|
|
cron:
|
2023-02-14 08:03:48 +00:00
|
|
|
image: "crazymax/swarm-cronjob:1.12.0"
|
2021-11-13 20:30:42 +00:00
|
|
|
environment:
|
|
|
|
- TZ=Europe/Amsterdam
|
|
|
|
- LOG_LEVEL=info
|
|
|
|
- LOG_JSON=false
|
|
|
|
volumes:
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
|
|
|
2021-11-13 19:51:55 +00:00
|
|
|
app:
|
2023-07-27 07:09:12 +00:00
|
|
|
image: "renovate/renovate:36.24-slim"
|
2021-11-13 19:51:55 +00:00
|
|
|
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
|
2023-01-18 17:32:04 +00:00
|
|
|
volumes:
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
2021-11-13 19:51:55 +00:00
|
|
|
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:
|
2021-11-13 20:05:43 +00:00
|
|
|
name: comrade_renovate_bot_config_js_v1
|
2021-11-13 19:51:55 +00:00
|
|
|
file: config.js.tmpl
|
|
|
|
template_driver: golang
|
|
|
|
entrypoint:
|
2021-11-13 20:05:43 +00:00
|
|
|
name: comrade_renovate_bot_entrypoint_v1
|
2021-11-13 19:51:55 +00:00
|
|
|
file: entrypoint.sh
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
api_token:
|
2021-11-13 20:05:43 +00:00
|
|
|
name: comrade_renovate_bot_api_token_v1
|
2021-11-13 19:51:55 +00:00
|
|
|
external: true
|
|
|
|
github_token:
|
2021-11-13 20:05:43 +00:00
|
|
|
name: comrade_renovate_bot_github_token_v1
|
2021-11-13 19:51:55 +00:00
|
|
|
external: true
|