Initial setup based on custom-html

This commit is contained in:
2022-10-26 17:26:30 -07:00
commit e8ec567f43
7 changed files with 139 additions and 0 deletions

27
compose.git-pull.yml Normal file
View File

@ -0,0 +1,27 @@
version: "3.8"
services:
git:
environment:
- GIT_REPO_URL
- GIT_REPO_SUBDIR
image: alpine/git:v2.32.0
entrypoint: /docker-entrypoint.sh
volumes:
- content:/git/${GIT_REPO_SUBDIR}
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