37 lines
691 B
YAML
37 lines
691 B
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
renovate:
|
|
image: "renovate/renovate:slim"
|
|
environment:
|
|
LOG_LEVEL: error
|
|
configs:
|
|
- source: config_js
|
|
target: /usr/src/app/config.js
|
|
secrets:
|
|
- api_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"
|
|
restart_policy:
|
|
condition: none
|
|
|
|
configs:
|
|
config_js:
|
|
name: config_js_v1
|
|
file: config.js.tmpl
|
|
template_driver: golang
|
|
|
|
secrets:
|
|
api_token:
|
|
name: api_token_v1
|
|
external: true
|