47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
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:
|
|
- "traefik.enable=true"
|
|
- "swarm.cronjob.enable=true"
|
|
- "swarm.cronjob.schedule=*/1 * * * *" # testing
|
|
# - "swarm.cronjob.schedule=0 8 * * *" # prod setup
|
|
- "swarm.cronjob.skip-running=false"
|
|
- "swarm.cronjob.replicas=1"
|
|
restart_policy:
|
|
condition: none
|
|
|
|
docker-cron-job:
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
environment:
|
|
- TZ=Europe/Amsterdam
|
|
- LOG_LEVEL=info
|
|
- LOG_JSON=false
|
|
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
|