43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
services:
|
|
app:
|
|
# Docs recommend using the non-full image and use a volume for caching downloaded binaries
|
|
image: "renovate/renovate:41"
|
|
healthcheck:
|
|
disable: true
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 0
|
|
labels:
|
|
- "swarm.cronjob.enable=true"
|
|
- "swarm.cronjob.schedule=${CRON_SCHEDULE}"
|
|
- "coop-cloud.${STACK_NAME}.version=1.1.0+41"
|
|
restart_policy:
|
|
condition: none
|
|
environment:
|
|
- RENOVATE_TOKEN_FILE=/run/secrets/renovate_token
|
|
# This is already the default, we're just being explicit since they've moved it before
|
|
- RENOVATE_BASE_DIR=/tmp/renovate
|
|
volumes:
|
|
- renovate-data:/tmp/renovate
|
|
secrets:
|
|
- renovate_token
|
|
configs:
|
|
- source: app_entrypoint
|
|
target: /docker-entrypoint.sh
|
|
mode: 0555
|
|
entrypoint: /docker-entrypoint.sh
|
|
|
|
secrets:
|
|
renovate_token:
|
|
name: ${STACK_NAME}_renovate_token_${SECRET_RENOVATE_TOKEN_VERSION}
|
|
external: true
|
|
|
|
configs:
|
|
app_entrypoint:
|
|
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
|
file: entrypoint.sh.tmpl
|
|
template_driver: golang
|
|
|
|
volumes:
|
|
renovate-data:
|