39 lines
807 B
YAML
39 lines
807 B
YAML
|
---
|
||
|
version: "3.8"
|
||
|
|
||
|
services:
|
||
|
renovate:
|
||
|
command: renovate
|
||
|
environment:
|
||
|
- RENOVATE_CONFIG_FILE=/etc/config.js
|
||
|
configs:
|
||
|
- source: config-js-prod-v1
|
||
|
target: /etc/config.js
|
||
|
deploy:
|
||
|
mode: replicated
|
||
|
replicas: 0
|
||
|
labels:
|
||
|
- "swarm.cronjob.enable=true"
|
||
|
- "swarm.cronjob.schedule=*/1 * * * *" # testing
|
||
|
# - "swarm.cronjob.schedule=0 8 * * *" # prod setup
|
||
|
- "swarm.cronjob.skip-running=false"
|
||
|
restart_policy:
|
||
|
condition: none
|
||
|
|
||
|
docker-cron-job:
|
||
|
deploy:
|
||
|
placement:
|
||
|
constraints:
|
||
|
- node.role == manager
|
||
|
labels:
|
||
|
- "traefik.enable=true"
|
||
|
|
||
|
configs:
|
||
|
config-js-prod-v1:
|
||
|
file: configs/prod/config.js.tmpl
|
||
|
template_driver: golang
|
||
|
|
||
|
secrets:
|
||
|
api-token-v1:
|
||
|
external: true
|