custom-html/compose.git-pull.yml

27 lines
619 B
YAML
Raw Permalink Normal View History

2022-03-23 09:57:26 +00:00
version: "3.8"
services:
git:
environment:
- GIT_REPO_URL
2023-07-08 18:33:37 +00:00
image: alpine/git:v2.40.1
2022-03-23 09:57:26 +00:00
entrypoint: /docker-entrypoint.sh
volumes:
- content:/git
configs:
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
deploy:
mode: replicated
replicas: 0
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=${CRON_SCHEDULE:-*/5 * * * *}"
restart_policy:
condition: none
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.git-pull.sh